python - Numpy Pandas 安装失败,/dev/null 上存在沙箱冲突

标签 python numpy jenkins pandas

我正在尝试通过requirements.txt将numpy和pandas安装到Jenkins服务器。但是,它在文件中的以下两行失败。

numpy>=1.6.1
pandas==0.12.0

输出为:

setuptools.sandbox.SandboxViolation: SandboxViolation: open('/dev/null', 'w') {}

The package setup script has attempted to modify files on your system

that are not within the EasyInstall build area, and has been aborted.

我尝试手动安装 numpy 和 pandas,但是安装忽略它们已经满足并尝试再次失败。

以下是更多控制台输出:http://pastebin.com/gNScq75P

有人能看出是什么原因造成的吗?非常感谢

最佳答案

供将来引用的解决方案:

安装失败的原因是 numpy 和 pandas 是通过 pip installrequirements.txt 从一个requirements.txt 安装的。这失败了,显然忽略了 numpy 和 pandas 的顺序。先手动安装 numpy,然后安装 pandas 解决了问题。

easy_install numpy
easy_install pandas

pip install numpy
pip install pandas

或者可以创建两个requirements.txt文件,第一个包含numpy,第二个包含pandas,并通过以下方式安装它们:

pip install requirements_one.txt
pip install requirements_two.txt

关于python - Numpy Pandas 安装失败,/dev/null 上存在沙箱冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19221360/

相关文章:

python - 找到最大化正确多数决定数量的预测子集

java - ANT 构建中未生成类文件

python - 从 Pandas 数据框索引创建列

python - 如何使用python访问gmail?

python - 极小极大函数内国际象棋移动生成的转置表

python - numpy 中的数组操作

Python 和 PySide : Variable values reset when calling functions from another file

python - Pandas :如果日期时间索引中的日期不同,则将一列的值添加到另一列

git - Jenkins 和 Git 稀疏 checkout

go - 通过 jenkins 部署 go 应用程序