pip install numpy报错

error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ D:\ruanjian\python\python.exe C:\Users\Administrator\AppData\Local\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116\vendored-meson\meson\meson.py setup C:\Users\Administrator\AppData\Loc
al\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116 C:\Users\Administrator\AppData\Local\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116.mesonpy-2mswc510 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Administrator\AppData\Local\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116.mesonpy-2mswc510\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116
Build dir: C:\Users\Administrator\AppData\Local\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116.mesonpy-2mswc510
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running `icl ""` gave "[WinError 2] 系统找不到指定的文件。"
  Running `cl /?` gave "[WinError 2] 系统找不到指定的文件。"
  Running `cc --version` gave "[WinError 2] 系统找不到指定的文件。"
  Running `gcc --version` gave "[WinError 2] 系统找不到指定的文件。"
  Running `clang --version` gave "[WinError 2] 系统找不到指定的文件。"
  Running `clang-cl /?` gave "[WinError 2] 系统找不到指定的文件。"
  Running `pgcc --version` gave "[WinError 2] 系统找不到指定的文件。"

  A full log can be found at C:\Users\Administrator\AppData\Local\Temp\pip-install-y09jskj8\numpy_b063366d228348b99cb469f0bc0fe116\.mesonpy-2mswc510\meson-logs\meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
解决方式如下
python版本和windows系统不对应,使用python3.13报错,改为python3.10可以运行

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值