我正在尝试在Pycharm中安装pygame并收到错误“命令错误,退出状态为1”。在出现此错误之前,我遇到一个错误,即我没有运行已更新的最新版本的pip。另外,我正在使用pycharm的最新版本3.8。
以下是错误消息的链接。由于我是该网站的新手,因此无法在此线程中发布它。赞赏和反馈,并为此提供帮助!预先感谢。
编辑:以下是命令错误消息。
收集pygame 使用缓存的https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz
ERROR: Command errored out with exit status 1:
command: 'C:\Users\jkalber\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\jkalber\\AppData\\Local\\Temp\\pycharm-packaging\\pygame\\setup.py'"'"'; __file__='"'"'C:\\Users\\jkalber\\AppData\\Local\\Temp\\pycharm-packaging\\pygame\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\jkalber\AppData\Local\Temp\pycharm-packaging\pygame\pip-egg-info'
cwd: C:\Users\jkalber\AppData\Local\Temp\pycharm-packaging\pygame\
Complete output (17 lines):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using WINDOWS configuration...
Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x86"? [Y/n]Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\jkalber\AppData\Local\Temp\pycharm-packaging\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\jkalber\AppData\Local\Temp\pycharm-packaging\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\jkalber\AppData\Local\Temp\pycharm-packaging\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\jkalber\AppData\Local\Temp\pycharm-packaging\pygame\buildconfig\download_win_prebuilt.py", line 302, in ask
reply = raw_input(
EOFError: EOF when reading a line
----------------------------------------
错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。