出现错误(已解决)安装skimage包时报错解决方法

错误

跑maskrcnn源码时安装skimage包出现了以下错误:

(mask-rcnn) ltsyl308@ltsyl308:~/modification/Mask_RCNN-2.1$ pip install skimage
Collecting skimage
  Using cached 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.

原因分析

skimage是scikit-image的简称,因此安装skimage时输入skimage的全称即可

解决方法

输入下面指令即可

pip install scikit-image
(mask-rcnn) ltsyl308@ltsyl308:~/modification/Mask_RCNN-2.1$ pip install scikit-image 
Collecting scikit-image
  Downloading scikit_image-0.19.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (13.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 20.6 kB/s eta 0:00:00
Collecting networkx>=2.2
  Downloading networkx-2.6.3-py3-none-any.whl (1.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 21.7 kB/s eta 0:00:00
Collecting imageio>=2.4.1
  Downloading imageio-2.21.3-py3-none-any.whl (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 20.5 kB/s eta 0:00:00
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (9.2.0)
Requirement already satisfied: numpy>=1.17.0 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (1.18.5)
Collecting PyWavelets>=1.1.1
  Downloading PyWavelets-1.3.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 32.7 kB/s eta 0:00:00
Requirement already satisfied: scipy>=1.4.1 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (1.7.3)
Requirement already satisfied: packaging>=20.0 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from scikit-image) (21.3)
Collecting tifffile>=2019.7.26
  Downloading tifffile-2021.11.2-py3-none-any.whl (178 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.9/178.9 kB 19.6 kB/s eta 0:00:00
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ltsyl308/anaconda3/envs/mask-rcnn/lib/python3.7/site-packages (from packaging>=20.0->scikit-image) (3.0.9)
Installing collected packages: tifffile, PyWavelets, networkx, imageio, scikit-image
Successfully installed PyWavelets-1.3.0 imageio-2.21.3 networkx-2.6.3 scikit-image-0.19.3 tifffile-2021.11.2

安装成功!

  • 15
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
Author: Audrey Roy Greenfeld, Daniel Roy Greenfeld Length: 556 pages Edition: 1 Publication Date: 2017-06-30 table: Chapter 1: Coding Style Chapter 2: The Optimal Django Environment Setup Chapter 3: How to Lay Out Django Projects Chapter 4: Fundamentals of Django App Design Chapter 5: Settings and Requirements Files Chapter 6: Model Best Practices Chapter 7: Queries and the Database Layer Chapter 8: Function- and Class-Based Views Chapter 9: Best Practices for Function-Based Views Chapter 10: Best Practices for Class-Based Views Chapter 11: Form Fundamentals Chapter 12: Common Patterns for Forms Chapter 13: Templates: Best Practices Chapter 14: Template Tags and Filters Chapter 15: Django Templates and Jinja2 Chapter 16: Building REST APIs with Django REST Framework (NEW) Chapter 17: Consuming REST APIs Chapter 18: Tradeoffs of Replacing Core Components Chapter 19: Working With the Django Admin Chapter 20: Dealing with the User Model Chapter 21: Django's Secret Sauce: Third-Party Packages Chapter 22: Testing Chapter of Doom! Chapter 23: Documentation: Be Obsessed Chapter 24: Finding and Reducing Bottlenecks Chapter 25: Security Best Practices Chapter 26: Logging: What's It For, Anyway? Chapter 27: Signals: Use Cases and Avoidance Techniques Chapter 28: What About Those Random Utilities? Chapter 29: Deployment: Platforms as a Service Chapter 30: Deploying Django Projects Chapter 31: Continuous Integration Chapter 32: The Art of Debugging Chapter 33: Where and How to Ask Django Questions Chapter 34: Closing Thoughts Appendix A: Packages Mentioned in This Book Appendix B: Troubleshooting Installation Appendix C: Additional Resources Appendix D: Internationalization and Localization Appendix E: Settings Alternatives Appendix F: Advice for Python 2.7 Users (NEW) Appendix G: Security Settings Reference Appendix H: Handling Security Failures (NEW) Appendix i: Channels and Websockets (NEW) Acknowledgments Index

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值