You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Python 3.11.0安装scikit-image失败,求助保留当前版本的解决办法

解决Python 3.11.0环境下安装scikit-image的编译依赖问题

在Python 3.11.0环境中执行pip install scikit-image或python -m pip install -U scikit-image命令安装scikit-image时失败,报错显示wheel构建环节出错,提示需要安装Microsoft Visual C++ 14.0及以上版本。

报错信息

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      INFO: CCompilerOpt.cache_flush[857] : write cache to path -> C:\Users\admin\AppData\Local\Temp\pip-install-z_bg8g6d\scikit-image_ae4333805d744761b97e8cd984f9e2c1\build\temp.win-amd64-3.11\Release\ccompiler_opt_cache_ext.py
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for scikit-image
Failed to build scikit-image
ERROR: Could not build wheels for scikit-image, which is required to install pyproject.toml-based projects

当前已安装依赖包

affine==2.3.1
attrs==22.1.0
beautifulsoup4==4.11.1
certifi==2022.9.24
charset-normalizer==2.1.1
click==8.1.3
click-plugins==1.1.1
cligj==0.7.2
colorama==0.4.6
contourpy==1.0.6
cycler==0.11.0
docopt==0.6.2
Fiona @ file:///C:/Users/admin/pipwin/Fiona-1.8.21-cp311-cp311-win_amd64.whl
fonttools==4.38.0
GDAL @ file:///C:/Users/admin/pipwin/GDAL-3.4.3-cp311-cp311-win_amd64.whl
geopandas==0.12.1
idna==3.4
Js2Py==0.74
kiwisolver==1.4.4
matplotlib==3.6.2
munch==2.5.0
umpy==1.23.4
opencv-contrib-python==4.6.0.66
packaging==21.3
pandas==1.5.1
Pillow==9.3.0
pipwin==0.5.2
pyjsparser==2.7.1
pyparsing==3.0.9
PyPrind==2.11.3
pyproj==3.4.0
pySmartDL==1.3.4
python-dateutil==2.8.2
pytz==2022.6
pytz-deprecation-shim==0.1.0.post0
rasterio==1.3.3
requests==2.28.1
rioxarray==0.12.4
Shapely==1.8.5.post1
six==1.16.0
snuggs==1.4.7
soupsieve==2.3.2.post1
tzdata==2022.6
tzlocal==4.2
urllib3==1.26.12
xarray==2022.11.0

已知两种解决方案:

  • 降级至旧版Python
  • 安装Visual Studio C++编译器

希望保留当前Python 3.11.0版本,在安装Visual Studio C++编译器时遇到阻碍,寻求可行的解决办法。


内容的提问来源于stack exchange,提问作者AlpacaKing

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 21:35:25