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

相关推荐
沉默王二16 小时前
你说你用Claude,你用的是 CLI,还是 Agent、Opus?
人工智能·程序员·claude
SimonKing16 小时前
别再把业务逻辑写进回调接口了!支付回调的正确打开方式
java·后端·程序员
BugShare2 天前
厌倦了使用 lsof 命令排查端口,来试试 sonar
运维·程序员
SimonKing2 天前
通义灵码不仅改名,还要收费了!!!
java·后端·程序员
陈随易2 天前
Redis数据结构速通
前端·后端·程序员
陈随易2 天前
Redis 8.8发布,一定要更新
前端·后端·程序员
ssshooter2 天前
Tauri 应用首次上架 App Store 被驳回了 3 次(iOS)和 12 轮(macOS)的经历
前端·ios·程序员
阿祖zu2 天前
2026 企业级 Agent 产品落地思考与全流程指南
前端·程序员·aigc
京东云开发者2 天前
AI助力跨境增长:京点点Oxygen Vision 跨境套图AI生成技术实践与展望
程序员