Python pip给出错误:命令“python setup.py egg_info”失败,错误代码1在/ tmp / pip-9erwl3ee-build /

时间:2017-03-08 18:45:48

标签: python python-3.x pygame pip

我正在尝试按

安装pygame
  

命令:pip3 install --user hg + http://bitbucket.org/pygame/pygame

但是每次它给出错误msg:命令“python setup.py egg_info”失败,错误代码1在/ tmp / pip-9erwl3ee-build /

我尝试过升级setuptools。 操作系统:Elementary OS Loki python3

  

命令我给:

     

pip install --user hg + http://bitbucket.org/pygame/pygame

     

我得到的输出:

     

收集hg + http://bitbucket.org/pygame/pygame
  将hg http://bitbucket.org/pygame/pygame克隆到/ tmp / pip-bhdorcms-build       从命令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/

1 个答案:

答案 0 :(得分:1)

我可以在Ubuntu 16.10上确认这种行为。

您需要pygame的最新版本吗?否则我会建议您安装它,而不是获得最新的稳定版本:

pip install pygame