出现错误(已解决)安装skimage包时报错解决方法

错误:

(mask-rcnn) ltsyl308@ltsyl308:~/modification/Mask_RCNN-2.1$ pip install skimage

Collecting skimage

Using cached skimage-0.0.tar.gz (757 bytes)

Preparing metadata (setup.py) ... error

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.

│ exit code: 1

╰─> [3 lines of output]

*** Please install the `scikit-image` package (instead of `skimage`) ***

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.

╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

原因分析

skimage是scikit-image的简称,因此安装skimage时输入skimage的全称即可

解决方法

输入下面指令即可

pip install scikit-image
(mask-rcnn) ltsyl308@ltsyl308:~/modification/Mask_RCNN-2.1$ pip install scikit-image 
Collecting scikit-image
  Downloading scikit_image-0.19.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (13.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 20.6 kB/s eta 0:00:00
Collecting networkx>=2.2
  Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 21.7 kB/s eta 0:00:00
Collecting imageio>=2.4.1
  Downloading imageio-2.21.3-py3-none-any.whl (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 20.5 kB/s eta 0:00:00
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (9.2.0)
Requirement already satisfied: numpy>=1.17.0 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (1.18.5)
Collecting PyWavelets>=1.1.1
  Downloading PyWavelets-1.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 32.7 kB/s eta 0:00:00
Requirement already satisfied: scipy>=1.4.1 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (1.7.3)
Requirement already satisfied: packaging>=20.0 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (21.3)
Collecting tifffile>=2019.7.26
  Downloading tifffile-2021.11.2-py3-none-any.whl (178 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.9/178.9 kB 19.6 kB/s eta 0:00:00
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from packaging>=20.0->scikit-image) (3.0.9)
Installing collected packages: tifffile, PyWavelets, networkx, imageio, scikit-image
Successfully installed PyWavelets-1.3.0 imageio-2.21.3 networkx-2.6.3 scikit-image-0.19.3 tifffile-2021.11.2

你可能感兴趣的:(python,开发语言)