[英]Unable to install pygame on Python via pip (Windows 10)
Currently unable to install Pygame via pip :目前无法通过pip 安装 Pygame :
pip install pygame
Getting this message:收到此消息:
Concerned by it being termed an EOF error, is this an error in the module itself?担心它被称为 EOF 错误,这是模块本身的错误吗?
There's dev
versions available as of now.目前有
dev
版本可用。 Get them via让他们通过
pip install pygame==2.0.0.dev6
Pygame is not compatible with Python 3.8 at the moment. Pygame 目前与 Python 3.8 不兼容。 I would recommend you to downgrade back to 3.7 and installing with pip there.
我建议您降级回 3.7 并在那里安装 pip。
pip is doesn't have pygame up. pip 没有 pygame。 But there is a alternative that worked for me.
但是有一个替代方案对我有用。 https://www.pygame.org/wiki/CompileWindows Read and follow the steps correctly and it should install.
https://www.pygame.org/wiki/CompileWindows正确阅读并按照步骤操作,它应该会安装。 you also need to update your code to pygame 2.0.0 code because it's only for 3.8 BTW you have to follow the SDL2 instructions since pygame 2.0.0 uses that.
您还需要将代码更新为 pygame 2.0.0 代码,因为它仅适用于 3.8 BTW,您必须遵循 SDL2 指令,因为 pygame 2.0.0 使用它。
the above commands worked for me today 3-15-20 with Python-3-8-0 on Linux Mint 19 to get IDLE to recognize pygame.以上命令在今天 3 月 15 日 20 日为我工作,在 Linux Mint 19 上使用 Python-3-8-0 让 IDLE 识别 pygame。
sudo pip3 install pygame==2.0.0.dev6 sudo pip3 install pygame==2.0.0.dev6
I also had to update pip first with我还必须先更新 pip
sudo pip3 install --upgrade pip sudo pip3 install --upgrade pip
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 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.