当前位置:   article > 正文

Ubuntu18.04--Detectron2环境配置与安装踩坑记录_running setup.py develop for detectron2 error: sub

running setup.py develop for detectron2 error: subprocess-exited-with-error

Ubuntu18.04–Detectron2环境配置与安装

参考https://blog.csdn.net/weixin_41761357/article/details/113713724
太多坑了。。。真的要吐了。。。

配置过程出现以下报错
git clone出现 gnutls_handshake() failed: The TLS connection was non-properly terminated

问题1

:git clone出现 gnutls_handshake() failed: The TLS connection was non-properly terminated在这里插入图片描述
原因:代理设置出错

解决方案:重置代理

git config --global --unset http.proxy
git config --global --unset https.proxy
  • 1
  • 2

问题2

在这里插入图片描述
在运行git clone命令时很容易出现这个错误,这是下载的包太大,网速慢超时报错。

解决办法:

修改配置文件

打开终端

运行:nano ~/.bashrc

然后在配置文件的最下面加上这三行

export GIT_TRACE_PACKET=1

export GIT_TRACE=1

export GIT_CURL_VERBOSE=1

然后保存退出后运行:source ~/.bashrc  是配置文件生效
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

问题3

Running setup.py develop for detectron2
ERROR: Command errored out with exit status 1:
command:
在这里插入图片描述

原因:这里发现我的cuda版本和gcc不兼容,解决这个问题要么更新cuda要么更新gcc

在这里插入代码片
  • 1

问题4

配环境踩过的坑(RuntimeError: Error compiling objects for extension)

(RuntimeError: Error compiling objects for extension)

可能是你的pytorch与cuda版本不匹配

根据我的了解
cuda10.2+pytorch1.5
cuda10.1+pytorch1.6

问题5

在安装 git+github 网页时出现此错误,全称是

ERROR: Command errored out with exit status 128: git clone -q https://github.com/ildoonet/pytorch-gradual-warmup-lr.git /tmp/pip-req-build-88ue_mql Check the logs for full command output.

参考解决方案
https://github.com/spdx/spdx-online-tools/issues/232

即将github网页中的http://换成git://

本来是
pip install git+http://github.com/ildoonet/pytorch-gradual-warmup-lr.git
改为
pip install git+git://github.com/ildoonet/pytorch-gradual-warmup-lr.git

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

闽ICP备14008679号