Unable to install pygame on Python 3.8 via pip (Wi

2020-01-23 13:11发布

问题:

Currently unable to install pygame via pip. Getting this message:

Concerned by it being termed an EOF error, is this an error in the module itself?

回答1:

There's dev versions available as of now. Get them via

pip install pygame==2.0.0.dev6


回答2:

welcome to Stack Overflow

Pygame is not compatible with python 3.8 at the moment. I would recommend you to downgrade back to 3.7 and installing with pip there.

Let me know how it goes...



回答3:

pip is doesn't have pygame up. 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. 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.