首页 文章

pip install scipy on virtualenv error RHEL6.5

提问于
浏览
2

我已经在其他非堆栈溢出源中查阅了这些:Install line 'pip install scipy' fails

Installing SciPy with pip

install scipy using pip in virtualenv on ubuntu 12.04

Installing SciPy on Red Hat

RHEL6.5发行版附带python2.6我已经安装了virtualenv和python2.7 . 安装包(在我的virtualenv中,即用 source MyEnvs/myEnv1/bin/activate 激活后): pip install {package name} 并且可以使用 yolk -l 验证我的环境是否包含我想要的包 . 一切都被发现,直到我尝试 pip install scipy 我收到以下错误:

[〜] #pip install scipy下载/解压scipy下载scipy-0.14.0.tar.gz(10.2MB):10.2MB下载运行setup.py(路径:/root/PythonVirtualEnvs/env1/build/scipy/setup.py )egg_info for package scipy

warning: no previously-included files matching '*_subr_*.f' found under directory 'scipy/linalg/src/id_dist/src'
no previously-included directories found matching 'scipy/special/tests/data/boost'
no previously-included directories found matching 'scipy/special/tests/data/gsl'
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
no previously-included directories found matching '*/__pycache__'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.bak' found anywhere in distribution
warning: no previously-included files matching '*.swp' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution

安装收集的软件包:scipy运行setup.py install for scipy blas_opt_info:blas_mkl_info:libraries mkl,vml,guide in found'[/ root / PythonVirtualEnvs / env1 / lib','/ usr / local / lib64','/ usr / local / lib','/ usr / lib64','/ usr / lib']不可用

openblas_info:
  libraries  not found in ['/root/PythonVirtualEnvs/env1/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in ['/root/PythonVirtualEnvs/env1/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64/atlas', '/usr/lib64/sse2', '/usr/lib64', '/usr/lib']
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in ['/root/PythonVirtualEnvs/env1/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64/atlas', '/usr/lib64/sse2', '/usr/lib64', '/usr/lib']
  NOT AVAILABLE

/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py:1521: 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 ['/root/PythonVirtualEnvs/env1/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib']
  NOT AVAILABLE

/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py:1530: 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

/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py:1533: 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 "<string>", line 1, in <module>
  File "/root/PythonVirtualEnvs/env1/build/scipy/setup.py", line 237, in <module>
    setup_package()
  File "/root/PythonVirtualEnvs/env1/build/scipy/setup.py", line 234, in setup_package
    setup(**metadata)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup
    config = configuration()
  File "/root/PythonVirtualEnvs/env1/build/scipy/setup.py", line 173, in configuration
    config.add_subpackage('scipy')
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
    caller_level = 2)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
    caller_level = caller_level + 1)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 872, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 12, in configuration
    config.add_subpackage('integrate')
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
    caller_level = 2)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
    caller_level = caller_level + 1)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py", line 872, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/integrate/setup.py", line 12, in configuration
    blas_opt = get_info('blas_opt',notfound_action=2)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py", line 350, in get_info
    return cl().get_info(notfound_action)
  File "/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py", line 509, 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.
Complete output from command /root/PythonVirtualEnvs/env1/bin/python2.7 -c "import setuptools, tokenize;__file__='/root/PythonVirtualEnvs/env1/build/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mun5c1-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/PythonVirtualEnvs/env1/include/site/python2.7:
blas_opt_info:

blas_mkl_info:

库mkl,vml,指南在['/ root / PythonVirtualEnvs / env1 / lib','/ usr / local / lib64','/ usr / local / lib','/ usr / lib64','/ usr /中找不到LIB']

无法使用

openblas_info:

在''/ root / PythonVirtualEnvs / env1 / lib','/ usr / local / lib64','/ usr / local / lib','/ usr / lib64','/ usr / lib']中找不到的库

无法使用

atlas_blas_threads_info:

设置PTATLAS = ATLAS

库ptf77blas,ptcblas, Map 集不在['/ root / PythonVirtualEnvs / env1 / lib','/ usr / local / lib64','/ usr / local / lib','/ usr / lib64 / atlas','/ usr / lib64 / sse2','/ usr / lib64','/ usr / lib']

无法使用

atlas_blas_info:

库f77blas,cblas, Map 集不在['/ root / PythonVirtualEnvs / env1 / lib','/ usr / local / lib64','/ usr / local / lib','/ usr / lib64 / atlas','/ usr / lib64 / sse2','/ usr / lib64','/ usr / lib']

无法使用

/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py:1521: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:

在''/ root / PythonVirtualEnvs / env1 / lib','/ usr / local / lib64','/ usr / local / lib','/ usr / lib64','/ usr / lib']中找不到库blas

无法使用

/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py:1530: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:

无法使用

/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py:1533: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(最近一次调用最后一次):

文件“”,第1行,in

文件“/root/PythonVirtualEnvs/env1/build/scipy/setup.py”,第237行,

setup_package()

在setup_package中的文件“/root/PythonVirtualEnvs/env1/build/scipy/setup.py”,第234行

setup(**metadata)

在设置中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/core.py”,第135行

config = configuration()

文件“/root/PythonVirtualEnvs/env1/build/scipy/setup.py”,第173行,在配置中

config.add_subpackage('scipy')

在add_subpackage中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py”,第966行

caller_level = 2)

在get_subpackage中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py”,第935行

caller_level = caller_level + 1)

在_get_configuration_from_setup_py中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py”,第872行

config = setup_module.configuration(*args)

在配置中文件“scipy / setup.py”,第12行

config.add_subpackage('integrate')

在add_subpackage中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py”,第966行

caller_level = 2)

在get_subpackage中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py”,第935行

caller_level = caller_level + 1)

在_get_configuration_from_setup_py中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py”,第872行

config = setup_module.configuration(*args)

在配置中文件“scipy / integrate / setup.py”,第12行

blas_opt = get_info('blas_opt',notfound_action=2)

在get_info中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py”,第350行

return cl().get_info(notfound_action)

在get_info中输入文件“/root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py”,第509行

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.

清理...命令/root/PythonVirtualEnvs/env1/bin/python2.7 -c“import setuptools,tokenize; file = '/root/PythonVirtualEnvs/env1/build/scipy/setup.py'; exec(compile(getattr(tokenize,'open',open)( file ) . read() . 替换('\r\n','\n'), file ,'exec'))“安装--record /tmp/pip-mun5c1-record/install-record.txt --single-version-external-managed --compile --install-headers /root/PythonVirtualEnvs/env1/include/site/python2.7失败/ root / PythonVirtualEnvs / env1 / build / scipy中的错误代码1在/root/.pip/pip.log中存储失败的调试日志

我证实了scipy,atlas,blas已经通过yum安装了 . 我不知道从哪里开始,我想找到一个使用pip的解决方案,即我不想做 easy_install scipy 如果您有任何建议,请告诉我 .

1 回答

  • 0

    我通过安装以下包解决了这个问题:

    • sudo apt-get install python -pip python-dev build-essential

    • sudo apt-get install libatlas-base-dev gfortran

    然后通过安装numpy或scipy和任何其他工具

    pip install <package--name> inside your virtualenv
    

相关问题