【问题标题】:gcloud problems with pip installpip安装的gcloud问题
【发布时间】:2016-03-14 10:53:42
【问题描述】:

我正在谷歌的云计算引擎上运行一个 ubuntu 14.04 实例。我已经安装了 anaconda (python 3.5.0) 并想通过 pip 安装其他软件包并手动升级一些。

pip install arch

我收到以下错误

Command "/opt/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-10ckqqqa/arch/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-tsgsc6n0-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-10ckqqqa/arch/

其他软件包(seabornpymysql)通过 pip 安装没有问题。首先我认为它与arch 包有关,但我也注意到更新pip install numpy --upgrade 也会引发错误,并出现以下错误:

Command "/opt/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5hogbswt/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xrahrzqb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-5hogbswt/numpy/

问题的根源很可能与库无关,我在这里错过了什么才能让实例正常工作?

【问题讨论】:

  • install-record.txt 文件中有什么内容?
  • 我发现了问题,对此感到抱歉。

标签: python ubuntu conda


【解决方案1】:

我的实例上缺少gcc。以sudo 运行apt-get install gcc 为我解决了这个问题。

【讨论】:

    猜你喜欢
    • 2020-07-25
    • 2017-12-16
    • 1970-01-01
    • 2012-02-12
    • 2017-06-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-13
    • 2022-01-26
    相关资源
    最近更新 更多