当前位置:   article > 正文

Detectron2 安装踩坑_running setup.py develop for detectron2

running setup.py develop for detectron2

在服务器上安装Detectron2:
设备:NVIDIA GeForce RTX 3090
显卡驱动和cuda:在这里插入图片描述
安装detectron2时,报错为:

Installing collected packages: detectron2
  Running setup.py develop for detectron2
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [59 lines of output]
        running develop
        running egg_info
        creating detectron2.egg-info
        writing detectron2.egg-info/PKG-INFO
        writing dependency_links to detectron2.egg-info/dependency_links.txt
        writing requirements to detectron2.egg-info/requires.txt
        writing top-level names to detectron2.egg-info/top_level.txt
		......
      self.initialize_options()
    error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

在网上查找问题说是gcc与cuda版本匹配问题,因为没搞懂升级gcc,就升级cuda之后:
在这里插入图片描述
可以正常安装。
如有错误敬请指正!!!
查询了一些博客:
detectron2安装(亲测好用)-试了一下没有成功

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号