0

可能重复:
山狮上的 scipy 安装失败

今天,我已按照此处的说明设置开发环境。说明建议在运行 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']
4

1 回答 1

3

因此,在花费了一些时间之后,看起来这是 and 之间的pip问题numpy。这个问题之前已在 SO 上解决,您可以尝试查看提出的解决方案(基本上是重新安装 numpy)是否适合您。

于 2012-10-02T11:48:29.370 回答