2016-04-26 122 views
0

我想在我的覆盆子pi安裝scipy。我已將庫解壓到/ home/pi文件夾中。我已經更改爲scipy-0.17.0文件夾,然後我輸入了python setup.py install,但出現以下錯誤。我該怎麼辦?我不知道爲什麼我不能使用sudo apt-get func。安裝scipy

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. 

回答

0

的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 

麥確保包裝的名稱是確定的通過

apt-cache search sypi | less 

希望幫助你apt-get的。

1

這個問題已經在這裏問到與linux有關的問題。樹莓派也是一樣。你可以檢查here