输出显示
正在获取构建车轮的要求...错误错误:子进程因错误退出
×获取构建wheel的要求未成功运行。│退出代码:1 ╰─〉[61行输出] Meson构建系统版本:0.62.2源目录:/private/var/文件夹/7 j/kvhbym 5 j 0 q9499 lwlx 3 p8 hh 80000 gn/T/pip-install-jv 74 wxwd/scipy_4adc41f671b54d0b9da66215aabea411构建目录:/private/var/文件夹/7 j/kvhbym 5 j 0 q9499 lwlx 3 p8 hh 80000 gn/T/pip-install-jv 74 wxwd/scipy_4adc41f671b54d0b9da66215aabea411/.mesonpy-0 ypirwuf/build构建类型:本机生成项目名称:SciPy项目版本:1.9.0 C编译器为主机:cc(clang 12.0.5“Apple clang版本12.0.5(clang-1205.0.22.11)”)主机的C链接器:cc ld 64 650.9 C编译器为主机:C(clang 12.0.5“Apple clang版本12.0.5(clang-1205.0.22.11)”)主机的C链接器:c ld 64 650.9主机CPU系列:aarch 64主机CPU:arm 64 C编译器支持参数-Wno-unused-but-set-variable:未找到库m:是的
../../meson.build:41:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['g95']]
The following exception(s) were encountered:
Running "gfortran --version" gave "[Errno 2] No such file or directory: 'gfortran'"
Running "gfortran -V" gave "[Errno 2] No such file or directory: 'gfortran'"
Running "flang --version" gave "[Errno 2] No such file or directory: 'flang'"
Running "flang -V" gave "[Errno 2] No such file or directory: 'flang'"
Running "nvfortran --version" gave "[Errno 2] No such file or directory: 'nvfortran'"
Running "nvfortran -V" gave "[Errno 2] No such file or directory: 'nvfortran'"
Running "pgfortran --version" gave "[Errno 2] No such file or directory: 'pgfortran'"
Running "pgfortran -V" gave "[Errno 2] No such file or directory: 'pgfortran'"
Running "ifort --version" gave "[Errno 2] No such file or directory: 'ifort'"
Running "ifort -V" gave "[Errno 2] No such file or directory: 'ifort'"
Running "g95 --version" gave "[Errno 2] No such file or directory: 'g95'"
Running "g95 -V" gave "[Errno 2] No such file or directory: 'g95'"
A full log can be found at /private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411/.mesonpy-0ypirwuf/build/meson-logs/meson-log.txt
+ meson setup --native-file=/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=/Library/Frameworks/Python.framework/Versions/3.10 /private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411 /private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411/.mesonpy-0ypirwuf/build
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 909, in get_requires_for_build_wheel
with _project(config_settings) as project:
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 888, in _project
with Project.with_temp_working_dir(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen)
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 547, in with_temp_working_dir
yield cls(source_dir, tmpdir, build_dir)
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 463, in __init__
self._configure(reconfigure=bool(build_dir) and not native_file_mismatch)
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 494, in _configure
self._meson(
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 477, in _meson
return self._proc('meson', *args)
File "/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-build-env-k7yc84gu/overlay/lib/python3.10/site-packages/mesonpy/__init__.py", line 472, in _proc
subprocess.check_call(list(args))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file=/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411/.mesonpy-native-file.ini', '-Ddebug=false', '-Doptimization=2', '--prefix=/Library/Frameworks/Python.framework/Versions/3.10', '/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411', '/private/var/folders/7j/kvhbym5j0q9499lwlx3p8hh80000gn/T/pip-install-jv74wxwd/scipy_4adc41f671b54d0b9da66215aabea411/.mesonpy-0ypirwuf/build']' returned non-zero exit status 1.
[end of output]
我该怎么修呢?
1条答案
按热度按时间64jmpszr1#
看起来您缺少
gfortran
,这是安装scipy所必需的fortran编译器。请尝试从here安装gfortran。如果这样做没有帮助,你可以从wheel这里安装scipy,然后运行
pip install filename.whl
来安装这个包。或者尝试scipy's website上列出的其他安装方法。