[英]Installing scipy
我正在尝试在树莓派中安装scipy。 我已经在/ home / pi文件夹中解压缩了库。 我已更改为scipy-0.17.0文件夹,然后键入python setup.py install
,但出现以下错误。 我该怎么办? 我不知道为什么我不能使用sudo apt-get func。
running from scipy source directory.
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in /usr/local/lib
libraries mkl,vml,guide not found in /usr/lib
libraries mkl,vml,guide not found in /usr/lib/arm-linux-gnueabihf
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/atlas-base
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/arm-linux-gnueabihf
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/lib/atlas-base
libraries f77blas,cblas,atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib/arm-linux-gnueabihf
NOT AVAILABLE
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:1435: 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__)
blas_info:
libraries blas not found in /usr/local/lib
libraries blas not found in /usr/lib
libraries blas not found in /usr/lib/arm-linux-gnueabihf
NOT AVAILABLE
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:1444: 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__)
blas_src_info:
NOT AVAILABLE
/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py:1447: 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__)
Traceback (most recent call last):
File "setup.py", line 165, in <module>
setup_package()
File "setup.py", line 161, in setup_package
configuration=configuration)
File "/usr/lib/pymodules/python2.7/numpy/distutils/core.py", line 152, in setup
config = configuration()
File "setup.py", line 136, in configuration
config.add_subpackage('scipy')
File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 1002, in add_subpackage
caller_level = 2)
File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 971, in get_subpackage
caller_level = caller_level + 1)
File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 908, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/setup.py", line 9, in configuration
config.add_subpackage('integrate')
File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 1002, in add_subpackage
caller_level = 2)
File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 971, in get_subpackage
caller_level = caller_level + 1)
File "/usr/lib/pymodules/python2.7/numpy/distutils/misc_util.py", line 908, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/integrate/setup.py", line 11, in configuration
blas_opt = get_info('blas_opt',notfound_action=2)
File "/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py", line 331, in get_info
return cl().get_info(notfound_action)
File "/usr/lib/pymodules/python2.7/numpy/distutils/system_info.py", line 482, in get_info
raise self.notfounderror(self.notfounderror.__doc__)
numpy.distutils.system_info.BlasNotFoundError:
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.
这里已经问了这个问题,它与linux有关。 树莓派也一样。 你可以在这里查看
blas库丢失了:
blas_info:
libraries blas not found in /usr/local/lib
libraries blas not found in /usr/lib
libraries blas not found in /usr/lib/arm-linux-gnueabihf
NOT AVAILABLE
您是否尝试通过像pip一样安装scypi
python -m pip install scypi
它应该能够掩盖所有必需的依赖项并为您安装。 您也可以尝试使用apt-get:
sudo apt-get install scipy
Mak确保包名称可以通过apt-get获得
apt-cache search sypi | less
希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.