gpt4 book ai didi

python - gcloud 与 pip install 相关的问题

转载 作者:太空宇宙 更新时间:2023-11-03 16:49:40 25 4
gpt4 key购买 nike

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

pip install arch

我收到以下错误

命令“/opt/anaconda3/bin/python -u -c”导入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-management --compile"在/tmp/pip-build-10ckqqqa/arch/中失败,错误代码为 1

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

命令“/opt/anaconda3/bin/python -u -c”导入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-management --compile"在/tmp/pip-build-5hogbswt/numpy/中失败,错误代码为 1

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

最佳答案

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

关于python - gcloud 与 pip install 相关的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35985586/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com