安装ModuleNotFoundError: No module named 'skimage'报错

跑代码时遇到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,安装成功~

相关推荐
浪荡Ddddd14 小时前
初识SpringAI:chat篇
后端·程序员
SimonKing15 小时前
美团不做外卖做浏览器了,而且是AI浏览器:Tabbit
java·后端·程序员
小兵张健1 天前
30天减20斤挑战:少一斤发100红包(17)
程序员
程序员鱼皮2 天前
再见百度,我用 1 小时,开发了个 AI 搜索引擎!Codex + GPT 5.5 + DeepSeek V4 真香~
计算机·ai·程序员·编程·ai编程
Nightwatchman2 天前
用 AI 写了两年代码,我终于看清它为什么会"骗人"
程序员·ai编程
小兵张健2 天前
30天减20斤挑战:少一斤发100红包(16)
程序员
修己xj2 天前
慢下来,才能走得更远
程序员
kyriewen2 天前
坏了,黑客学会用AI写外挂了
前端·程序员·ai编程
我要改名叫嘟嘟2 天前
一个大龄程序员的26年1季度总结,旧瓶里的旧酒
程序员
滕青山2 天前
Codex中转站 使用指南 快速开始
程序员