2016-02-09 204 views
0

我尝试在SLURM环境中使用pip安装SciPy。 NumPy和其他一些python模块已经安装并正常工作。SciPy无法通过pip安装

然而,当我运行:

pip2.7 install --user --use-wheel scipy

pip2.7 install --user scipy

我总是得到文字的一堵巨大结尾:

error: Command "/sw/compiler/gcc-4.9.3/bin/gfortran -Wall -g -shared -Wall -g -shared -shared build/temp.linux-x86_64-2.7/scipy/integrate/_odepackmodule.o -L/sw/env/gcc-4.9.3_openmpi-1.8.8/pkgsrc/2015Q4/lib -L/sw/env/gcc-4.9.3_openmpi-1.8.8/pkgsrc/2015Q4/lib -Lbuild/temp.linux-x86_64-2.7 -lodepack -lmach -llapack -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/scipy/integrate/_odepack.so" failed with exit status 1


Command "/sw/env/gcc-4.9.3_openmpi-1.8.8/pkgsrc/2015Q4/bin/python2.7 -c "import setuptools, tokenize;file='/work/tmp/node001.admin.2016-02-09-015538.intx033.31602/pip-build-fORQns/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /work/tmp/node001.admin.2016-02-09-015538.intx033.31602/pip-7oTcK5-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /work/tmp/node001.admin.2016-02-09-015538.intx033.31602/pip-build-fORQns/scipy

不幸的是我不知道是什么这应该告诉我......任何想法?

+1

当SciPy的安装失败,但其他包做,它通常与gfortran,LAPACK,BLAS还是有些不对劲。不熟悉Slurm,但我建议确保这些设置正确,如果没有其他人有任何更具体的建议给你。 –

+0

好的,谢谢。你有任何链接/文档具体哪些包gfortran,LAPACK和BLAS需要?哪些版本? – daniel451

+1

我不认为它太挑剔。这里的文档开始提供了一些指导,并且大部分流程都有详细信息:http://www.scipy.org/scipylib/building/linux.html –

回答

1

您需要有C,C++和Fortran编译器以及BLAS/LAPACK库来编译scipy。最简单的选择可能是gcc + gfortran +预编译的地图集,它应该可以工作。对于性能,尤其是线性代数,您可能需要考虑使用英特尔MKL或OpenBLAS。