Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pygame 无法正常import的问题 #3

Closed
AlonZhao opened this issue Jul 25, 2022 · 0 comments
Closed

pygame 无法正常import的问题 #3

AlonZhao opened this issue Jul 25, 2022 · 0 comments

Comments

@AlonZhao
Copy link

安装依赖时,会显示已经无法定位到python pygame包;
启动sh后没有键盘控制界面。
采用其他单独安装的方法会发现安装在了python3下,python2和python中import仍然报错;
更改默认python版本不起作用

solve:
终端进入pyhon,python2,python3界面,确定import pygame在哪个版本下;
修改simulation.h文件第一行python指令为对应的版本,例如python3

@GaaiLam GaaiLam closed this as completed Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants