[英]Unable to install pygame on Python via pip (Windows 10)
目前有dev
版本可用。 让他们通过
pip install pygame==2.0.0.dev6
Pygame 目前与 Python 3.8 不兼容。 我建议您降级回 3.7 并在那里安装 pip。
pip 没有 pygame。 但是有一个替代方案对我有用。 https://www.pygame.org/wiki/CompileWindows正确阅读并按照步骤操作,它应该会安装。 您还需要将代码更新为 pygame 2.0.0 代码,因为它仅适用于 3.8 BTW,您必须遵循 SDL2 指令,因为 pygame 2.0.0 使用它。
以上命令在今天 3 月 15 日 20 日为我工作,在 Linux Mint 19 上使用 Python-3-8-0 让 IDLE 识别 pygame。
sudo pip3 install pygame==2.0.0.dev6
我还必须先更新 pip
sudo pip3 install --upgrade pip
Pygame 需要 Visual Studio C++ 构建工具来安装。 确保您已从此处下载这些内容。
Open power shell window and make sure your internet is on Then type the following command pip install pygame It will automatically download it for you and also install it Again make sure your internet is on I have python 3.8.2 and it worked on my pc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.