在virtualenv中安装scipy时无法解决没有lapack / blas(虽然numpy,scikit-learn都可以)

时间:2015-11-03 07:09:51

标签: linux scipy virtualenv lapack blas

我在linux(Redhat),python27 virtualenv上工作。我可以通过ENV / PATH / bin / pip install numpy安装numpy,但是以相同的方式安装scipy时会得到错误消息(没有lapack / blas)。此外,正如预期的那样,从src文件构建scipy是行不通的。我已经逐步尝试了Does Python SciPy need BLAS?中描述的方式,但仍然无法正常工作。有人可以告诉我任何可以尝试的方法吗?非常感谢

  /home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/system_info.py:1566: UserWarning:
    Lapack (http://www.netlib.org/lapack/) sources not found.
    Directories to search for the sources can be specified in the
    numpy/distutils/site.cfg file (section [lapack_src]) or by setting
    the LAPACK_SRC environment variable.
  warnings.warn(LapackSrcNotFoundError.__doc__)
  NOT AVAILABLE

Running from scipy source directory.
Traceback (most recent call last):
  File "setup.py", line 253, in <module>
    setup_package()
  File "setup.py", line 250, in setup_package
    setup(**metadata)
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup
    config = configuration()
  File "setup.py", line 175, in configuration
    config.add_subpackage('scipy')
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
    caller_level = 2)
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 15, in configuration
    config.add_subpackage('linalg')
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
    caller_level = 2)
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
    caller_level = caller_level + 1)
  File "/home/szh702/virtenv/install_file/numpy-1.10.1/habitslab/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/linalg/setup.py", line 20, in configuration
    raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

0 个答案:

没有答案