简介

Detectron原github地址:https://github.com/facebookresearch/detectron2

Detectron安装指引: https://detectron2.readthedocs.io/en/latest/tutorials/install.html

Detectron介绍:

Detectron2 is Facebook AI Research’s next generation library that provides state-of-the-art detection and segmentation algorithms. It is the successor of Detectron and maskrcnn-benchmark. It supports a number of computer vision research projects and production applications in Facebook.


报错过程

此处采用的是官方安装指引中第二条安装方式,即:

# to install it from a local clone:
git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2

但出现报错:

ERROR: Command errored out with exit status 1: /home/xxx/anaconda3/envs/detectron2/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-req-build-yf9eibzp/setup.py’"’"’; file=’"’"’/tmp/pip-req-build-yf9eibzp/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’


解决方案

解决方案来源: https://github.com/facebookresearch/detectron2/issues/1459

具体方案:
①直接通过sudo降级
将gcc降级到低版本,原论坛大多数都是从7.5降级到7.1,实测从7.5降级到5.5也行。

如果是在自己机器上,gcc降级是一个很方便的操作,但鉴于各种原因,可能是租的服务器,或者借用实验室服务器没有降级权限等等原因,这里提供第二种降级思路。

②设置临时变量

鉴于命令行启动程序是在path变量的目录逐个寻找,所以只需要自己开一个目录弄一个执行低版本gcc的连接,名字就叫gcc,然后将这个目录放在path最前面即可完成降级。

mkdir temp-gcc-5
cd temp-gcc-5/
ln -s /usr/bin/gcc-5 gcc
ll
export PATH=/home/name/temp-gcc-5:$PATH

Slowfast环境配置问题 | detectron2安装 error ERROR: Command errored out with exit status 1:相关推荐

  1. ubuntu18.04安装python的mysqlclient==1.4.6报错ERROR Command errored out with exit status 1python setup

    安装python的mysqlclient==1.4.6报错 环境: ubuntu18.04 python 3.7.2 Django 2.2 想要使用Django来操作MySQL,报错: LookupE ...

  2. 安装PaddleOCR遇到ERROR: Command errored out with exit status 1:command: ‘f:\python3.7\python.exe‘ -u -c

    一.安装Paddle遇到ERROR: Command errored out with exit status 1: 二.错误内容: ERROR: Command errored out with e ...

  3. windows安装imgaug ERROR: Command errored out with exit status 1: ERROR: Command errored out with exit

    在windows10下安装imgaug,我的python是3.7版本,一直在报错 报错信息如下所示: ERROR: Command errored out with exit status 1:   ...

  4. python 安装pytorch apex 报错:“ERROR: Command errored out with exit status 1: /home/litt/anaconda3/envs/”

    1.安装错误 安装apex库时,执行安装 pip install -v --disable-pip-version-check --no-cache-dir --global-option=" ...

  5. python安装第三方库遇到 ERROR: Command errored out with exit status 1:

    python安装第三方库遇到 ERROR: Command errored out with exit status 1:-的问题 先来看看错误提示: 本来想用python弄个词云玩玩,没想到在安装w ...

  6. 安装 torch-scatter,torch-sparse 出现error: Command errored out with exit status 1

    部分内容参考文章,感谢这位博主 在已经正确安装pytorch的情况下,pip install torch-scatter, torch-sparse 仍然遇到问题, ERROR: Command er ...

  7. pip3安装出现ERROR: Command errored out with exit status 1:

    按照https://github.com/xybu/onedrived-dev一步步安装, 到了pip3 install --user git+https://github.com/xybu/oned ...

  8. python安装Pytorch框架torch出错,ERROR Command errored out with exit status 1ERROR Command errored out

    python安装Pytorch框架torch出错,ERROR: Command errored out with exit status 1ERROR: Command errored out wit ...

  9. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm

    目录 问题 解决方法 问题 Python3.7环境下安装PySide pip install PySide Collecting PySideUsing cached PySide-1.2.4.tar ...

最新文章

  1. 大战即将来临,柯洁将于5月与AlphaGo正式对决
  2. 人工智能深度学习Caffe框架介绍,优秀的深度学习架构
  3. ansible基础配置
  4. 【转】Linux终端下 dstat 监控工具
  5. linux 安装 maven 、解决:bash: mvn: command not found
  6. Oracle 10g RAC Installer 故障之--Oracle软件安装无法发现集群
  7. Python 实现针对时间序列预测的特征选择
  8. oracle中的脱机与联机,使存储池中的设备联机和脱机
  9. 计算机的五大组成部分(计组学习一)
  10. Julia: save 与 @save
  11. 美国计算机科学本科申请条件,美国计算机专业申请条件
  12. SVN客户端安装详细教程
  13. 【工具】聊聊文件传输工具,网页文件传输工具Snapdrop好用不
  14. Java-醉汉行走问题
  15. win10每次开机桌面计算机就没有,怎样解决Win10开机需要按F1才能进入桌面
  16. 34岁的困境!测试工程师如何突破职业瓶颈?
  17. 通向架构师的道路(第二十七天)IBM网格计算与企业批处理任务架构
  18. 从ADK的WinPE自己手动构建自己的PE
  19. testin云测操作
  20. ionic3保存图片到本地相册

热门文章

  1. 【区块链】以太坊区块链技术初探
  2. Aptana介绍及下载地址
  3. vbscript错误代码及对应解释大全/VBScript 语法错误
  4. Redis集群配置(手工切换主Redis,哨兵自动切换主Redis)
  5. TCP Illinois 与 TCP Highspeed
  6. vue前后台分离上传图片到服务器
  7. PXE+VMware主机模式+KickStart脚本 自动安装ESXi 并试用WireShark抓包分析其中的协议TFTP,DHCP
  8. Windows 7打开.hlp文件
  9. GitHub Actions 实现 Azure Infra 资源的自动化部署
  10. 跟踪宝宝发育应用程序的开发思路