pygame不导入
我已经下载了PyGame版本2.1.2,并且使用Python 3.10.4使用它,但是当我尝试导入它时,它会出现错误:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pygame
ModuleNotFoundError: No module named 'pygame'
我已经在VSCODE上尝试过,但它突然无法正常工作再过了。有什么建议吗?
I've downloaded pygame version 2.1.2 and I'm using it with python 3.10.4 but it is giving an error when I try to import it:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pygame
ModuleNotFoundError: No module named 'pygame'
I have tried it on vscode and it was working but it suddenly isn't working anymore. Any suggestions please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试使用这样的pip安装:
python -m pip安装pygame
?也许您可以在此页面上找到更多答案: inforterror:no Module:no模块'Pygame''
Did you try install with pip like this:
python -m pip install pygame
?Maybe you can find more answers on this page: ImportError: No module named 'pygame'