gpt4 book ai didi

python - 在 Python 3.10 上安装 SciPy 时出现问题

转载 作者:行者123 更新时间:2023-12-05 01:27:03 28 4
gpt4 key购买 nike

<分区>

这是我尝试 pip install scipy 时得到的输出:

    ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py'"'"'; __file__='"'"'/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-record-axfypb45/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/scipy
cwd: /private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/
Complete output (107 lines):
/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py:114: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
import imp

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)


Running from scipy source directory.
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

openblas_lapack_info:
libraries openblas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

openblas_clapack_info:
libraries openblas,lapack not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

flame_info:
libraries flame not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

accelerate_info:
NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries tatlas,tatlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE

atlas_3_10_info:
libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries satlas,satlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries ptf77blas,ptcblas,atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE

atlas_info:
libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries f77blas,cblas,atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE

lapack_info:
libraries lapack not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/distutils/system_info.py:1858: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
return getattr(self, '_calc_info_{}'.format(name))()
lapack_src_info:
NOT AVAILABLE

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/distutils/system_info.py:1858: 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.
return getattr(self, '_calc_info_{}'.format(name))()
NOT AVAILABLE

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py", line 492, in <module>
setup_package()
File "/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py", line 488, in setup_package
setup(**metadata)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py", line 395, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found. Note: Accelerate is no longer supported.
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py'"'"'; __file__='"'"'/private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-install-swd6xkjh/scipy_53c3cdd4e8e2447f841731b3161ea9a3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dm/ydr8mjcd4_z1snyrs0hzrd840000gn/T/pip-record-axfypb45/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/scipy Check the logs for full command output.

完全不确定发生了什么,但我认为 Python 是在说我没有安装 BLAS 和 LAPACK 库,但我在使用自制软件安装 openblas 和 lapack 后遇到了同样的错误。我不明白错误日志告诉我什么。

我使用的是 MacOS Big Sur,以及配备 Core i9 处理器的 2019 Macbook Pro 16 英寸型号。

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com