pip, conda no puede encontrar el paquete skimage solution y reemplazarlo con la descarga de scikit-image

informar error

import skimage
报错
ModuleNotFoundError: No module named ‘skimage‘

Luego intenté buscar la instalación de skimage directamente

conda环境
conda install skimage

pip环境
pip install skimage

Todos los errores de informe. La solución es la misma, puedes saltar directamente a la solución para verla . Antes de eso, hablemos de ello y enumeremos los errores específicos.

error de conda

PackagesNotFoundError: The following packages are not available from current channels:

  - skimage

o

error de pip

(versiones anteriores) podría ser

Could not find a version that satisfies the requirement skimage (from versions: )……

(nueva versión) también puede ser

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.

Solución

En su lugar, descargue el paquete scikit-image, skimage pertenece a este paquete, descargue este paquete para importar skimage.

conda环境
conda install scikit-image

pip环境
pip install scikit-image

Supongo que te gusta

Origin blog.csdn.net/m0_46948660/article/details/129706894
Recomendado
Clasificación