Python的PIP提供了错误:命令 “蟒蛇setup.py egg_info” 在/ tmp/PIP-9erwl3ee建造,错误代码无效1/
问题描述:
我试图通过Python的PIP提供了错误:命令 “蟒蛇setup.py egg_info” 在/ tmp/PIP-9erwl3ee建造,错误代码无效1/
command: pip3 install --user hg+ http://bitbucket.org/pygame/pygame
安装pygame的,但每次它给错误信息:命令“python setup.py egg_info”失败,错误代码1在/ tmp/pip-9erwl3ee-build/
我试过升级setuptools。 OS:小学OS洛基 python3
command I give:
pip install --user hg+ http://bitbucket.org/pygame/pygame
Output I get:
Collecting hg+ http://bitbucket.org/pygame/pygame
Cloning hg http://bitbucket.org/pygame/pygame to /tmp/pip-bhdorcms-build Complete output from command python setup.py egg_info:WARNING, No "Setup" File Exists, Running "config.py" Using UNIX configuration... /bin/sh: 1: freetype-config: not found /bin/sh: 1: freetype-config: not found /bin/sh: 1: freetype-config: not found Hunting dependencies... WARNING: "freetype-config" failed! SDL : found 1.2.15 FONT : found IMAGE : found MIXER : found PNG : found JPEG : found SCRAP : found PORTMIDI: found PORTTIME: found FREETYPE: not found Missing dependencies ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-bhdorcms-build/
答
我可以证实,在Ubuntu 16.10这个行为。
您是否需要pygame
的最新版本?否则,我会建议你像这样安装它,而不是获得最新的稳定版本:
pip install pygame
请在运行后发布执行日志。 – nir0s