我得到了这个日志的输出:
收集scipy使用缓存的scipy-1.10.1.tar.gz(42.4 MB)安装构建依赖项.完成获取构建轮的要求.完成安装后端依赖项.完成准备元数据(pyproject. toml). error error:subprocess-exited-with-error
×准备元数据(pyproject.toml)没有成功运行。请退出代码:1 ─>[37行输出]+介子设置--prefix = c:\users\ohadr\appdata\local\programs\python\python38 - 32 C:\用户\ohadr\AppData\Local\Temp\pip-install-0zbjnob0\scipy_1ba51c155259474da69bcd9990585d 9b C:\Users\ohadr\AppData\Local\Temp\pip-install-0zbjnob0\scipy_1ba51c155259474da69bcd9990585d9b.mes. onpy-d59ejxu_\build--native-file = C:\Users\ohadr\AppData\Local\Temp\pip-install-0zbjnob0\scipy_1ba51c155259474da69bcd9990585d9b.mesonpy-native-file.ini-Ddebug = false-Doptimization = 2 Meson构建系统版本:1.2.3源目录:C:\Users\ohadr\AppData\Local\Temp\pip-install-0zbjnob0\scipy_1ba51c155259474da69bcd9990585d9b构建目录:C:\Users\ohadr\AppData\Local\Temp\pip-install-0zbjnob0\scipy_1ba51c155259474da69bcd9990585d9b. mesonpy-d59ejxu_\build
构建类型:本机构建项目名称:SciPy Project版本:1.10.1为主机激活VS 17.0.4 C编译器:cl(msvc 19.30.30706 "Microsoft(R)C/C ++ Optimizing Compiler Version 19.30.30706 for x64")主机的C链接器:link link 14.30.30706.0主机的C++编译器:cl(msvc 19.30.30706 "用于x64的Microsoft(R)C/C 优化编译器版本19.30.30706")
C linker for the host machine:link link 14.30.30706.0 Cython compiler for the host machine:cython(cython 0.29.36)主机cpu系列:x86_64主机cpu:x86_64 C编译器支持参数-Wno-unused-but-set-variable:NO C编译器支持参数-Wno-unused-function:NO C编译器支持参数-Wno-conversion:NO C语言的编译器支持参数-Wno-missibly-indentation:NO C语言的编译器支持参数-Wno-compatible-pointer-types:NO Library m found:NO
..\..\meson.build:63:0: ERROR: Unknown compiler(s): [['ifort'], ['gfortran'], ['flang'], ['pgfortran'], ['g95']]
The following exception(s) were encountered:
Running `ifort --version` gave "[WinError 2] The system cannot find the file specified"
Running `ifort -V` gave "[WinError 2] The system cannot find the file specified"
Running `gfortran --version` gave "[WinError 2] The system cannot find the file specified"
Running `gfortran -V` gave "[WinError 2] The system cannot find the file specified"
Running `flang --version` gave "[WinError 2] The system cannot find the file specified"
Running `flang -V` gave "[WinError 2] The system cannot find the file specified"
Running `pgfortran --version` gave "[WinError 2] The system cannot find the file specified"
Running `pgfortran -V` gave "[WinError 2] The system cannot find the file specified"
Running `g95 --version` gave "[WinError 2] The system cannot find the file specified"
Running `g95 -V` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:\Users\ohadr\AppData\Local\Temp\pip-install-0zbjnob0\scipy_1ba51c155259474da69bcd9990585d9b\.mesonpy-d59ejxu_\build\meson-logs\meson-log.txt
[end of output]
字符串
注意:此错误源于子流程,可能不是pip的问题。错误:元数据生成失败
×生成包元数据时遇到错误。─>请参见上面的输出。
注意:这是上面提到的软件包的问题,而不是pip。提示:详见上面。
- 我有Python 3.8,还有最新的pip,wheel和setuptools。还安装了NumPy我如何修复并安装SciPy?,我应该安装其他东西吗?(我使用VSC)**
1条答案
按热度按时间kxxlusnw1#
您需要更新版本的python,scipy仅支持python 3.9+ https://pypi.org/project/scipy/#data