我正在尝试安装sklearn/scipy/scikit-在我的windows笔记本电脑中安装Pycharm,但是它一直失败,错误如下。当我尝试pip安装,从终端学习,它通过,但程序没有工作和抱怨,仍然与模块,没有发现错误。
不知道,为什么它不能用吡喃.得到这个错误,我不知道这是什么
*"WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"*
*Collecting sklearn
Using cached sklearn-0.0.tar.gz (1.1 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting scikit-learn
Using cached scikit_learn-1.1.2-cp38-cp38-win32.whl (6.6 MB)
Collecting scipy>=1.3.2
Using cached scipy-1.9.2.tar.gz (42.1 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
[49 lines of output]
+ meson setup --native-file=C:\Users\vinod\AppData\Local\Temp\pip-install-ka425mpg\scipy_2429ab45c5ae41bc9802aaa34bafeb6e\.mesonpy-native-file.ini -Ddebug=false -Doptimization=2 --prefix=C:\Users\vinod\AppData\Local\Programs\Python\Python38-32 C:\Users\vinod\AppData\Local\Temp\pip-install-ka425mpg\scipy_2429ab45c5ae41bc9802aaa34bafeb6e C:\Users\vinod\AppData\Local\Temp\pip-install-ka425mpg\scipy_2429ab45c5ae41bc9802aaa34bafeb6e\.mesonpy-fpbohej2\build
The Meson build system
Version: 0.63.3
Source dir: C:\Users\vinod\AppData\Local\Temp\pip-install-ka425mpg\scipy_2429ab45c5ae41bc9802aaa34bafeb6e
Build dir: C:\Users\vinod\AppData\Local\Temp\pip-install-ka425mpg\scipy_2429ab45c5ae41bc9802aaa34bafeb6e\.mesonpy-fpbohej2\build
Build type: native build
Project name: SciPy
Project version: 1.9.2
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] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.*
发布于 2022-10-13 20:45:56
从试图安装的sklearn
轮毂来看,您使用的是32位Python。scipy
没有1.9.2版本的32位轮毂。最新版本的枕,提供32位车轮是1.9.1。
你应该能够pip install scipy==1.9.1
。
https://stackoverflow.com/questions/74049036
复制相似问题