python - 如何在Python中安装Pygame

标签 python pygame

我是一名学习Python的学生,我们有一个项目需要引用Pygame。我不知道如何让它在我的家用电脑上工作。 我在 Windows 10 家庭版上使用 Python 3.7(64 位)。

感谢您的指导。 马特

最佳答案

马特你尝试过用 pip 安装它吗:

pip3 install pygame

对于基于用户的安装,请查看:

https://www.pygame.org/wiki/GettingStarted

pip3 安装使导入变得容易

关于python - 如何在Python中安装Pygame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59024189/

相关文章:

python - 将字符串作为参数传递给 python 脚本

python - Kivy:底部导航栏

python - itertools 的 chain.from_iterable 和 chain() 的更简化解释

python - 模拟 : assert_called_once_with a numpy array as argument

python - 使用 PyGame 显示 Sci Py voronoi 边缘会产生奇怪的 "star"效果

python - pygame.错误: display Surface quit after filling the surface black

python - 类中角色的pygame运动不起作用

python - TypeError:参数 1 必须是 pygame.Surface,而不是方法

python - Pygame 显示导致段错误 11

python - 通过selenium动态创建一个新元素