pip install scipy on virtualenv error RHEL6.5

时间:2014-07-02 18:53:03

标签: scipy pip virtualenv

我已经在其他非堆栈溢出源中查询了这些: 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。使用source MyEnvs/myEnv1/bin/activate安装软件包(在我的virtualenv中,即在使用pip install {package name}激活它之后)并使用yolk -l验证我的环境是否包含我想要的软件包。在我尝试pip install scipy之前发现所有内容我收到以下错误:

[〜] #ppip安装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安装scipy     blas_opt_info:     blas_mkl_info:       库mkl,vml,指南在[' / root / PythonVirtualEnvs / env1 / lib',' / usr / local / lib64',' / usr / local / lib& #39;,' / 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,指南未在[&#39; / root / PythonVirtualEnvs / env1 / lib&#39;,&#39; / usr / local / lib64&#39;,&#39; / usr /中找到local / lib&#39;,&#39; / usr / lib64&#39;,&#39; / usr / lib&#39;]

不可用

openblas_info:

/ root / PythonVirtualEnvs / env1 / lib&#39;,&#39; / usr / local / lib64&#39;,&#39; / usr / local / lib&#39中找不到的库;,&#39; / usr / lib64&#39;,&#39; / usr / lib&#39;]

不可用

atlas_blas_threads_info:

设置PTATLAS = ATLAS

图书馆ptf77blas,ptcblas,atlas [&#39; / root / PythonVirtualEnvs / env1 / lib&#39;,&#39; / usr / local / lib64&#39;,&#39; / usr / local / lib&#39;,&#39; / usr / lib64 / atlas&#39;,&#39; / usr / lib64 / sse2&#39;,&#39; / usr / lib64&#39;,&#39 ; / usr / lib中&#39;]

不可用

atlas_blas_info:

f77blas,cblas,atlas [&#39; / root / PythonVirtualEnvs / env1 / lib&#39;,&#39; / usr / local / lib64&#39;,&#39; / usr / local / lib&#39;,&#39; / usr / lib64 / atlas&#39;,&#39; / usr / lib64 / sse2&#39;,&#39; / usr / lib64&#39;,&#39 ; / usr / lib中&#39;]

不可用

/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。的文档

blas_info:

在[&#39; / root / PythonVirtualEnvs / env1 / lib&#39;,&#39; / usr / local / lib64&#39;,&#39; / usr / local / lib&#中找不到库39;,&#39; / usr / lib64&#39;,&#39; / usr / lib&#39;]

不可用

/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。的文档

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。的文档

追踪(最近一次呼叫最后一次):

文件&#34;&#34;,第1行,

文件&#34; /root/PythonVirtualEnvs/env1/build/scipy/setup.py" ;,第237行,

setup_package()

文件&#34; /root/PythonVirtualEnvs/env1/build/scipy/setup.py",第234行,在setup_package中

setup(**metadata)

File&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/core.py" ;,第135行,在设置中

config = configuration()

文件&#34; /root/PythonVirtualEnvs/env1/build/scipy/setup.py" ;,第173行,在配置中

config.add_subpackage('scipy')

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py",第966行,在add_subpackage中

caller_level = 2)

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py",第935行,在get_subpackage中

caller_level = caller_level + 1)

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py",第872行,在_get_configuration_from_setup_py

config = setup_module.configuration(*args)

文件&#34; scipy / setup.py&#34;,第12行,在配置

config.add_subpackage('integrate')

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py",第966行,在add_subpackage中

caller_level = 2)

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py",第935行,在get_subpackage中

caller_level = caller_level + 1)

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/misc_util.py",第872行,在_get_configuration_from_setup_py

config = setup_module.configuration(*args)

文件&#34; scipy / integrate / setup.py&#34;,第12行,在配置中

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

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py" ;,第350行,在get_info中

return cl().get_info(notfound_action)

文件&#34; /root/PythonVirtualEnvs/env1/lib/python2.7/site-packages/numpy/distutils/system_info.py",第509行,在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.

清理...... 命令/root/PythonVirtualEnvs/env1/bin/python2.7 -c&#34; import setuptools,tokenize; file =&#39; / root / PythonVirtualEnvs / env1 / build / scipy / setup。 py&#39 ;; exec(编译(getattr(tokenize,&#39;打开&#39;,打开)(文件)。read()。replace(&#39; \ r \ n&# 39;,&#39; \ n&#39;),文件,&#39; exec&#39;))&#34; install --record /tmp/pip-mun5c1-record/install-record.txt --single-version-external-managed --compile --install-headers /root/PythonVirtualEnvs/env1/include/site/python2.7 failed / root / PythonVirtualEnvs / env1 / build / scipy中的错误代码1 在/root/.pip/pip.log中存储失败的调试日志

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

1 个答案:

答案 0 :(得分:0)

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

  1. sudo apt-get install python -pip python-dev build-essential
  2. sudo apt-get install libatlas-base-dev gfortran
  3. 然后通过

    安装numpy或scipy以及任何其他工具
    pip install <package--name> inside your virtualenv