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

相关推荐
小兵张健1 小时前
30天减20斤挑战:少一斤发100红包(11)
程序员
牛奶7 小时前
开发者的"奇技淫巧":那些让你效率翻倍的实战技巧
前端·后端·程序员
魔术师Grace7 小时前
AI让我退化成原始人了
前端·程序员
SamDeepThinking9 小时前
批评下属不如当场展示解决方案
后端·程序员·团队管理
码流怪侠13 小时前
【GitHub】TextGen:开源本地大模型运行平台的终极解决方案
python·程序员·github
程序员鱼皮13 小时前
吴恩达新的免费 AI 课来了,YYDS!我已经学上了
计算机·ai·程序员·编程·ai编程
树獭非懒15 小时前
Harness Engineering:驾驭大模型的工程新范式
人工智能·程序员·llm
小兵张健1 天前
30天减20斤挑战:少一斤发100红包(10)
程序员
舒一笑1 天前
用几十行代码搞定 Chat 接口透明转发:跨环境轻量级网关实战
后端·程序员·架构
这个DBA有点耶1 天前
一张5000万行的表,加索引从45秒到0.02秒——索引设计你真的会吗
程序员·代码规范