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

相关推荐
学不可以已13 小时前
Windows 开启/禁用 ping/icmp 回显服务
程序员
AskHarries14 小时前
Twitter 增长技巧
程序员
AIOps打工人15 小时前
【AIOPS】当运维 Agent 开始自己学:证据补全才是自学习的真门槛
程序员·架构
SimonKing20 小时前
GenOffice上手指南:免费替代Word+PPT+Excel的AI办公神器
java·后端·程序员
Hilaku21 小时前
Bun 真的能取代 Node.js 吗?
前端·javascript·程序员
顶级自由人2 天前
本地正常、线上正常,为什么一个 Hook 仍会报错?
前端·javascript·程序员
Hilaku2 天前
技术好就能升职是前端圈最大的谎言!
前端·javascript·程序员
newerp2 天前
Golang 切片扩容策略
后端·程序员·go
谢文峰2 天前
从 Domain Workload 到垂直领域 Agent
程序员
刻意思考2 天前
任务领域边界问题的定义
程序员