首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >python-3.11.0中scikit映像的安装错误

python-3.11.0中scikit映像的安装错误
EN

Stack Overflow用户
提问于 2022-11-08 06:29:16
回答 1查看 203关注 0票数 1

使用python-3.11.0安装scikit映像时出错。

这个包只是通过pip install scikit-imagepython -m pip install -U scikit-image安装的。

错误信息显示,该问题发生在车轮建造过程中,因此阻碍了科学图像的安装。我怎么才能解决这个问题?

错误信息:

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

环境:

代码语言:javascript
运行
复制
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
numpy==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

会上提出了两种办法:

Nathan answer

  • Install
  1. 降级为旧版本: Visual C++编译器,如:https://wiki.python.org/moin/WindowsCompilers中所提到的

但是,我想继续使用当前的python版本,而且我还停留在第二种方法上。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-11-08 15:52:07

在我的例子中,这个问题是通过安装一个轮子文件来解决的:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-image

在我的例子中,我下载了cp311 windows amd64版本。

然后,将.whl文件安装到虚拟环境中。

代码语言:javascript
运行
复制
(env) D:\env>python -m pip install D:\Download\scikit_image-0.19.3-cp311-cp311-win_amd64.whl

最后,成功地安装了scikit映像。

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

https://stackoverflow.com/questions/74356504

复制
相关文章

相似问题

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