如何解决无法在Pycharm上安装pygame
我一直在尝试在pycharm上安装pygame,但是它不起作用。我正在使用虚拟环境和pip版本20,setuptools版本50和python版本3.8 这是我尝试通过项目解释器部分和终端安装它时遇到的错误。
Using cached pygame-1.9.6.tar.gz (3.2 MB)
DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable,possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
ERROR: Command errored out with exit status 1:
command: /home/terry/PycharmProjects/SpaceInvader/venv/bin/python -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/tmp/pycharm-packaging/pygame/setup.py'"'"'; __file__='"'"'/tmp/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 /tmp/pip-pip-egg-info-tt74i3ja
cwd: /tmp/pycharm-packaging/pygame/
Complete output (29 lines):
WARNING,No "Setup" File Exists,Running "buildconfig/config.py"
Using UNIX configuration...
Hunting dependencies...
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
/bin/sh: 1: sdl-config: not found
WARNING: "sdl-config" Failed!
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
WARNING: "pkg-config freetype2" Failed!
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
WARNING: "freetype-config" Failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。