首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >未能找到vswhere.exe的Pycharm中sklearn / find的安装失败

未能找到vswhere.exe的Pycharm中sklearn / find的安装失败
EN

Stack Overflow用户
提问于 2022-10-12 23:41:31
回答 1查看 202关注 0票数 1

我正在尝试安装sklearn/scipy/scikit-在我的windows笔记本电脑中安装Pycharm,但是它一直失败,错误如下。当我尝试pip安装,从终端学习,它通过,但程序没有工作和抱怨,仍然与模块,没有发现错误。

不知道,为什么它不能用吡喃.得到这个错误,我不知道这是什么

代码语言:javascript
运行
复制
*"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.*
EN

回答 1

Stack Overflow用户

发布于 2022-10-13 20:45:56

从试图安装的sklearn轮毂来看,您使用的是32位Python。scipy没有1.9.2版本的32位轮毂。最新版本的枕,提供32位车轮是1.9.1。

你应该能够pip install scipy==1.9.1

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74049036

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档