python|安装skimage库报错:required to install pyproject.toml-based projects

一、安装报错问题

使用pip安装,先用命令:pip install skimage ,安装失败,然后参考发现skimage库的命令是:pip install scikit-image,也没有成功

 二、解决方法

参考帖子

(1条消息) python skimage库的安装方法_AmosLLc的博客-CSDN博客_python安装skimage库https://blog.csdn.net/AmosLLc/article/details/88429347

(1条消息) python| skimage安装报错 ImportError: DLL load failed: 找不到指定的模块_没有酒的酒窝的博客-CSDN博客_skimage找不到https://blog.csdn.net/qq_42752651/article/details/113486616

先参考

 (1条消息) python skimage库的安装方法_AmosLLc的博客-CSDN博客_python安装skimage库

1. 下载whl文件

Archived: Python Extension Packages for Windows – Christoph Gohlke (uci.edu)https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

在上面网址下载python版本对应的包,我的是python 3.11 win64,所以下载以下三个(cp后面对应python版本)

 

2. 将这三个文件复制到python安装目录下的Scripts文件夹中

3. 在cmd中输入下面命令依次安装:

pip install numpy‑1.22.4+mkl‑cp311‑cp311‑win_amd64.whl

pip install SciPy‑1.8.1‑cp311‑cp311‑win_amd64.whl

pip install scikit_image‑0.19.3‑cp311‑cp311‑win_amd64.whl

前面两个安装很顺利,但是最后一个就开始报错,和最开始的一样

Failed to build scikit-image
ERROR: Could not build wheels for scikit-image, which is required to install pyproject.toml-based projects

然后参考(1条消息) python| skimage安装报错 ImportError: DLL load failed: 找不到指定的模块_没有酒的酒窝的博客-CSDN博客_skimage找不到

 输入命令pip install -i https://pypi.douban.com/simple C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Scripts\scikit_image-0.19.3-cp311-cp311-win_amd64.whl

成功了!

 4. 最后去python中输入import skimage,没有报错,安装成功。

注:本人python初学者,仅记录此次坎坷的安装过程,侵权必删。最后关于报错原因,看了很多帖子也不知道这个报错是什么意思。

 

物联沃分享整理
物联沃-IOTWORD物联网 » python|安装skimage库报错:required to install pyproject.toml-based projects

发表评论