使用pip on Mountain Lion安装SciPy 0.11

时间:2012-10-02 10:13:21

标签: python install package scipy pip

  

可能重复:
  scipy install on mountain lion failing

今天,我已按照here的说明设置了开发环境。在运行Mountain Lion时,说明建议使用开发版本(编写链接文章时为0.11)。但是,默认的pip安装现在是版本0.11,所以我猜这应该不是问题。使用以下日志在我的计算机上安装失败。

有人可以建议解决这个问题吗?

(注意,尝试安装开发版本也失败了)

pip install scipy

> Downloading/unpacking scipy   Running setup.py egg_info for package
> scipy
>     Running from scipy source directory.
>     blas_opt_info:
>       FOUND:
>         extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
>         define_macros = [('NO_ATLAS_INFO', 3)]
>         extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
>     
>     lapack_opt_info:
>       FOUND:
>         extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
>         define_macros = [('NO_ATLAS_INFO', 3)]
>         extra_compile_args = ['-msse3']
>     
>     umfpack_info:
>       libraries umfpack not found in /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib
>     amd_info:
>       libraries amd not found in /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib
>       FOUND:
>         libraries = ['amd']
>         library_dirs = ['/usr/local/lib']
>         swig_opts = ['-I/usr/local/include']
>         define_macros = [('SCIPY_AMD_H', None)]
>         include_dirs = ['/usr/local/include']
>     
>       FOUND:
>         libraries = ['umfpack', 'amd']
>         library_dirs = ['/usr/local/lib']
>         swig_opts = ['-I/usr/local/include', '-I/usr/local/include']
>         define_macros = [('SCIPY_UMFPACK_H', None), ('SCIPY_AMD_H', None)]
>         include_dirs = ['/usr/local/include']
>     
>     Traceback (most recent call last):
>       File "<string>", line 16, in <module>
>       File "/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/setup.py",
> line 208, in <module>
>         setup_package()
>       File "/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/setup.py",
> line 199, in setup_package
>         configuration=configuration )
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/core.py",
> line 152, in setup
>         config = configuration()
>       File "/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/setup.py",
> line 136, in configuration
>         config.add_subpackage('scipy')
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 1002, in add_subpackage
>         caller_level = 2)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 971, in get_subpackage
>         caller_level = caller_level + 1)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 908, in _get_configuration_from_setup_py
>         config = setup_module.configuration(*args)
>       File "scipy/setup.py", line 19, in configuration
>         config.add_subpackage('special')
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 1002, in add_subpackage
>         caller_level = 2)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 971, in get_subpackage
>         caller_level = caller_level + 1)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 908, in _get_configuration_from_setup_py
>         config = setup_module.configuration(*args)
>       File "/private/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/scipy/special/setup.py",
> line 54, in configuration
>         extra_info=get_info("npymath")
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 2220, in get_info
>         pkg_info = get_pkg_info(pkgname, dirs)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 2172, in get_pkg_info
>         return read_config(pkgname, dirs)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 390, in read_config
>         v = _read_config_imp(pkg_to_filename(pkgname), dirs)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 326, in _read_config_imp
>         meta, vars, sections, reqs = _read_config(filenames)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 309, in _read_config
>         meta, vars, sections, reqs = parse_config(f, dirs)
>       File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 281, in parse_config
>         raise PkgNotFound("Could not find file(s) %s" % str(filenames))
>     numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s) ['/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini']
>     Complete output from command python setup.py egg_info:
>     Running from scipy source directory.
> 
> blas_opt_info:
> 
>   FOUND:
> 
>     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
> 
>     define_macros = [('NO_ATLAS_INFO', 3)]
> 
>     extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
> 
> 
> 
> lapack_opt_info:
> 
>   FOUND:
> 
>     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
> 
>     define_macros = [('NO_ATLAS_INFO', 3)]
> 
>     extra_compile_args = ['-msse3']
> 
> 
> 
> umfpack_info:
> 
>   libraries umfpack not found in
> /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib
> 
> amd_info:
> 
>   libraries amd not found in
> /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib
> 
>   FOUND:
> 
>     libraries = ['amd']
> 
>     library_dirs = ['/usr/local/lib']
> 
>     swig_opts = ['-I/usr/local/include']
> 
>     define_macros = [('SCIPY_AMD_H', None)]
> 
>     include_dirs = ['/usr/local/include']
> 
> 
> 
>   FOUND:
> 
>     libraries = ['umfpack', 'amd']
> 
>     library_dirs = ['/usr/local/lib']
> 
>     swig_opts = ['-I/usr/local/include', '-I/usr/local/include']
> 
>     define_macros = [('SCIPY_UMFPACK_H', None), ('SCIPY_AMD_H', None)]
> 
>     include_dirs = ['/usr/local/include']
> 
> 
> 
> Traceback (most recent call last):
> 
>   File "<string>", line 16, in <module>
> 
>   File
> "/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/setup.py",
> line 208, in <module>
> 
>     setup_package()
> 
>   File
> "/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/setup.py",
> line 199, in setup_package
> 
>     configuration=configuration )
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/core.py",
> line 152, in setup
> 
>     config = configuration()
> 
>   File
> "/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/setup.py",
> line 136, in configuration
> 
>     config.add_subpackage('scipy')
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 1002, in add_subpackage
> 
>     caller_level = 2)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 971, in get_subpackage
> 
>     caller_level = caller_level + 1)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 908, in _get_configuration_from_setup_py
> 
>     config = setup_module.configuration(*args)
> 
>   File "scipy/setup.py", line 19, in configuration
> 
>     config.add_subpackage('special')
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 1002, in add_subpackage
> 
>     caller_level = 2)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 971, in get_subpackage
> 
>     caller_level = caller_level + 1)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 908, in _get_configuration_from_setup_py
> 
>     config = setup_module.configuration(*args)
> 
>   File
> "/private/var/folders/dt/vmqtg5kj26q2vkzrfwg_6hz40000gn/T/pip-build/scipy/scipy/special/setup.py",
> line 54, in configuration
> 
>     extra_info=get_info("npymath")
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 2220, in get_info
> 
>     pkg_info = get_pkg_info(pkgname, dirs)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/misc_util.py",
> line 2172, in get_pkg_info
> 
>     return read_config(pkgname, dirs)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 390, in read_config
> 
>     v = _read_config_imp(pkg_to_filename(pkgname), dirs)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 326, in _read_config_imp
> 
>     meta, vars, sections, reqs = _read_config(filenames)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 309, in _read_config
> 
>     meta, vars, sections, reqs = parse_config(f, dirs)
> 
>   File
> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/distutils/npy_pkg_config.py",
> line 281, in parse_config
> 
>     raise PkgNotFound("Could not find file(s) %s" % str(filenames))
> 
> numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s)
> ['/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini']

1 个答案:

答案 0 :(得分:3)

所以,花了一些时间后,看起来这是pipnumpy之间的问题。这个问题已经解决了previously on SO,您可以尝试看看提议的解决方案(基本上,重新安装numpy)是否适合您。