signaler une erreur
import skimage
报错
ModuleNotFoundError: No module named ‘skimage‘
Ensuite, j'ai essayé de rechercher directement l'installation de skimage
conda环境
conda install skimage
pip环境
pip install skimage
Toutes les erreurs de rapport. La solution est la même, vous pouvez accéder directement à la solution pour la voir . Avant cela, parlons-en et énumérons les erreurs spécifiques.
erreur conda
PackagesNotFoundError: The following packages are not available from current channels:
- skimage
ou
erreur de pip
(anciennes versions) pourraient être
Could not find a version that satisfies the requirement skimage (from versions: )……
(nouvelle version) peut également être
Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple
Collecting skimage
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/3b/ee/edbfa69ba7b7d9726e634bfbeefd04b5a1764e9e74867ec916113eeaf4a1/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.
Solution
Au lieu de cela, téléchargez le package scikit-image, skimage appartient à ce package, téléchargez ce package pour importer skimage.
conda环境
conda install scikit-image
pip环境
pip install scikit-image