简体   繁体   中英

Installing scipy

I'm trying to install scipy in my raspberry pi. I have unzipped the library in the /home/pi folder. I have changed to the scipy-0.17.0 folder and then I have typed python setup.py install , but the following error comes out. What should I do? I don't know why I can't use 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.

This question is already asked here which is related to linux. It will be same for raspberry pi also. You can check here

The blas libraries are missing:

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

Have you tried to install scypi via pip like

python -m pip install scypi

It should be able to resole all needed dependecies and install the for you. You can also try to use apt-get:

sudo apt-get install scipy

Mak sure that the package name is ok for apt-get via

apt-cache search sypi | less

Hopefully that helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM