我正在尝试通过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/