Unable to install pygame on Python 3.8 via pip (Windows 10)

前端 未结 6 1738
悲&欢浪女
悲&欢浪女 2020-11-22 05:25

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

Concerned by it being termed an EOF error, is this an error in the modul

相关标签:
6条回答
  • 2020-11-22 05:47

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

    pip install pygame==2.0.0.dev6
    
    0 讨论(0)
  • 2020-11-22 05:49

    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.

    0 讨论(0)
  • 2020-11-22 05:53

    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...

    0 讨论(0)
  • 2020-11-22 05:54

    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.

    sudo pip3 install pygame==2.0.0.dev6

    I also had to update pip first with

    sudo pip3 install --upgrade pip

    0 讨论(0)
  • 2020-11-22 06:01

    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

    0 讨论(0)
  • 2020-11-22 06:02

    Pygame requires visual studio C++ build tools to install. Ensure you have these downloaded from here.

    0 讨论(0)
提交回复
热议问题