【发布时间】:2014-04-24 09:17:18
【问题描述】:
我的 python 程序中有 scipy 作为依赖项,我正在尝试使用 setuptools 进行打包。
我在 setup.py 中使用了install_requires=['scipy','matplotlib']。
正在运行python setup.py install
Processing dependencies for Bland==1.0.a.dev1
Searching for scipy
Reading http://pypi.python.org/simple/scipy/
Best match: scipy 0.13.3
Downloading https://pypi.python.org/packages/source/s/scipy/scipy-0.13.3.zip#md5=20ff3a867cc5925ef1d654aed2ff7e88
Processing scipy-0.13.3.zip
它一直持续到它显示 3 到 4 个警告和如下错误
ages/numpy/distutils/system_info.py:1522: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
/home/storm/Documents/bland/local/lib/python2.7/site-packages/numpy/distutils/system_info.py:1531: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
/home/storm/Documents/bland/local/lib/python2.7/site-packages/numpy/distutils/system_info.py:1534: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
error:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable
我找到了this question,但这是在没有setup.py 的情况下安装 scipy,它告诉下载,然后编译 fortran 文件,最后将它们链接到一个库,然后在安装 scipy 时该库必须位于您的搜索路径中。但是我应该如何从setup.py 执行此操作,或者是否有解决方法。
仅供参考:我在virtualenv运行这个
【问题讨论】:
标签: python python-2.7 scipy setup.py