ERROR: Command errored out with exit status 1:
command: 'C:\Users\Thomas\pgzero_env\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Thomas\\AppData\\Local\\Temp\\pip-install-5voo4hii\\pygame\\setup.py'"'"'; __file__='"'"'C:\\Users\\Thomas\\AppData\\Local\\Temp\\pip-install-5voo4hii\\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\Thomas\AppData\Local\Temp\pip-pip-egg-info-3wy10uc8'
cwd: C:\Users\Thomas\AppData\Local\Temp\pip-install-5voo4hii\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-x64"? [Y/n]Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Thomas\AppData\Local\Temp\pip-install-5voo4hii\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\Thomas\AppData\Local\Temp\pip-install-5voo4hii\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\Thomas\AppData\Local\Temp\pip-install-5voo4hii\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\Thomas\AppData\Local\Temp\pip-install-5voo4hii\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检查日志以获取完整的命令输出。
发布于 2020-12-27 22:45:09
以下是Python 的工作原理
发布于 2020-12-31 04:38:47
我也有同样的问题。命令:
pip install pygame安装完全没有问题。然而,
pip install pgzero给了我你收到的长长的错误清单。
另外,我使用的是Python 3.9.0。
我只是完全卸载了它,然后安装了3.8.7。PYGAME和PGZERO安装正确!从https://www.python.org/downloads/windows/获取
发布于 2020-12-31 05:06:08
而且-即使我安装了两个模块,我的简单程序也不能工作:
import pgzrun
def draw():
screen.draw.text("Hello", topleft=(10,10))
pgzrun.go()我会收到各种各样奇怪的错误。我在https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html?page=4&pageSize=10&sort=votes&type=problem上找到了答案。
我输入以下命令来更改numpy的版本:
pip install numpy==1.19.3然后我的代码运行的很好。
https://stackoverflow.com/questions/65460093
复制相似问题