提问者:小点点

Pythonpip给出错误:命令"pythonsetup.pyegg_info"失败与错误代码1在 /tmp/pip-9erwl3ee-build/


我正在尝试通过安装pygame

命令:pip3 install--user hghttp://bitbucket.org/pygame/pygame

但每次它给错误msg:命令"pythonsetup.pyegg_info"失败与错误代码1在 /tmp/pip-9erwl3ee-build/

我尝试过升级setuptools。OS:初级OSLoki python3

我给的命令:

pip安装--user hghttp://bitbucket.org/pygame/pygame

我得到的输出:

收集hghttp://bitbucket.org/pygame/pygame
克隆hghttp://bitbucket.org/pygame/pygame /tmp/pip-bhdorcms-build完整的输出命令pythonsetup.pyegg_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个答案

匿名用户

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

您需要pygame的前沿版本吗?否则我建议您像这样安装它以获取最新的稳定版本:

pip install pygame