【问题标题】:Python pip gives error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-9erwl3ee-build/Python pip 给出错误:命令“python setup.py egg_info”在 /tmp/pip-9erwl3ee-build/ 中失败,错误代码为 1
【发布时间】:2017-03-08 18:45:48
【问题描述】:

我正在尝试通过

安装 pygame

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

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

我已尝试升级 setuptools。 操作系统:基本操作系统 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/

【问题讨论】:

  • 运行后请贴出执行日志。

标签: python python-3.x pygame pip


【解决方案1】:

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

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

pip install pygame

【讨论】:

    猜你喜欢
    • 2016-02-14
    • 2017-12-13
    • 2021-10-23
    • 2018-07-13
    • 2019-08-24
    • 2018-05-18
    • 2023-04-01
    • 2018-11-03
    • 2018-05-28
    相关资源
    最近更新 更多