收集pygame 使用缓存的pygame-1.9.6.tar.gz(3.2 MB) 错误:命令错误,退出状态为1: 命令:/ usr / bin / python3 -c'导入sys,setuptools,令牌化; sys.argv [0] ='“'”'/tmp/pip-install-lva53fx4/pygame/setup.py'“'”'; 文件 ='“'”'/ tmp / pip-install-lva53fx4 / pygame / setup.py'“'”'; f = getattr(tokenize,'“'”'open'“'” ',打开)(文件);代码= f.read()。replace('“'”'\ r \ n'“'”','“'”'\ n'“' “'); f.close(); exec(compile(code, file ,'”'“'exec'”'“'))'egg_info --egg-base / tmp / pip-安装lva53fx4 / pygame / pip-egg-info CWD:/ tmp / pip-install-lva53fx4 / pygame / 完成输出(29行):
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
Hunting dependencies...
WARNING: "sdl-config" failed!
WARNING: "pkg-config freetype2" failed!
WARNING: "freetype-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
----------------------------------------
错误:命令错误,退出状态为1:
答案 0 :(得分:0)
目前没有正式版本。有一个开发版本:
pip install pygame==2.0.0.dev6
但是我建议您回到3.7并等待。
答案 1 :(得分:0)
使用此
sudo apt-get install python3-pygame