安装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,安装成功~

相关推荐
To_OC5 小时前
从一次栈溢出报错说起,我把递归彻底扒明白了
javascript·算法·程序员
烬羽10 小时前
中英文 token 数量差一倍?两段 JS 代码搞懂 LLM 底层是怎么"读"文字的
javascript·程序员·架构
Patrick_Wilson11 小时前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
程序员cxuan12 小时前
GPT-5.6 还不发布?不过大家可以先看看 Codex 的白皮书。
人工智能·后端·程序员
Apifox13 小时前
从 Postman 迁移到 Apifox:Workspace、Collection、Environment 现在可以一起导入了
前端·后端·程序员
陈随易16 小时前
VSCode古法神器fnMap v9开发故事
前端·后端·程序员
AskHarries17 小时前
插件权限、安装、升级和版本兼容
程序员
字节跳动数据库18 小时前
文章分享——庖丁解牛-图解查询分析和调优利器Optimizer Trace
人工智能·程序员
码流怪侠1 天前
【GitHub】Ponytail:给 AI 编码代理植入“懒人资深开发者“灵魂的开源插件深度拆解
程序员·github·ai编程
秦先生在广东2 天前
Claude Code 最佳实践:从"氛围编程"到智能体工程
程序员