如何解决如何在python3.8中安装pygame?
收集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:
解决方法
目前没有正式版本。有一个开发版本:
pip install pygame==2.0.0.dev6
但是我建议您回到3.7并等待。
,使用此
sudo apt-get install python3-pygame
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。