我在 openshift 环境中运行源到镜像,在此环境中,pip 将使用 requirements.txt
文件来安装多个包。
在安装某些软件包时出现错误:
Collecting itsdangerous==0.24 (from -r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz (46kB)
Complete output from command python setup.py egg_info:
----------------------------------------
Command "python setup.py egg_info" failed with error code -9 in /tmp/pip-build-1sttjqx7/itsdangerous/
在网上查找没有关于具体错误代码“failed with error code -9”的信息。
有关 -9 实际含义的提示?
最佳答案
openshift 平台配置为使用以下默认 cpu 值:25milicores 和 64Mib 内存。因此,问题是由内存不足引起的。
郑重声明,可以使用额外资源配置 openshift yaml,如此链接 [输入链接描述 here] 中所示。
关于python - pip install 返回 -9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56966984/