跑代码时遇到ModuleNotFoundError: No module named 'skimage',所以就想当然输入指令
pip install skimage
于是终端报错显示:
vbnet
Collecting skimage
Downloading 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.
原来是因为scimage是包的缩写,得安装完整的包名。输入指令pip install scikit-image
,安装成功~