栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Ubuntu18.04--Detectron2环境配置与安装踩坑记录

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ubuntu18.04--Detectron2环境配置与安装踩坑记录

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
问题2


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

解决办法:

修改配置文件

打开终端

运行:nano ~/.bashrc

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

export GIT_TRACE_PACKET=1

export GIT_TRACE=1

export GIT_CURL_VERBOSE=1

然后保存退出后运行:source ~/.bashrc  是配置文件生效
问题3

Running setup.py develop for detectron2
ERROR: Command errored out with exit status 1:
command:

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

在这里插入代码片
问题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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/840918.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号