我无法在python(64位)中安装pygame软件包。
我尝试通过
files>settings>program name>program interpreter
然后,在安装pygame时,我遇到了这个问题:
Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Manish\AppData\Local\Temp\pycharm-packaging\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\Manish\AppData\Local\Temp\pycharm-packaging\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\Manish\AppData\Local\Temp\pycharm-packaging\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\Manish\AppData\Local\Temp\pycharm-packaging\pygame\buildconfig\download_win_prebuilt.py", line 302, in ask
reply = raw_input(
EOFError: EOF when reading a line
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Manish\AppData\Local\Temp\pycharm-packaging\pygame\
我做的第二件事是通过终端进行尝试,但出现了同样的错误。
我的python和pycharm的先前版本为32位,然后我更改为64位。
我现在真的很困,因为我什至无法安装其他软件包,例如kivy等。
答案 0 :(得分:1)
类似于Unable to install pygame on Python 3.8 via pip (Windows 10)
Pygame不支持python 3.8,但是有一种安装方法,请检查链接。
答案 1 :(得分:1)
Pygame尚不支持3.8,因为它目前不稳定。同时,我建议降级至3.7并使用以下命令安装pygame:
pip install pygame
几个月后3.8将实现一些模块。很抱歉给您带来不便,希望这能解决您的问题。