有问题请留言,争取持续更新。

硬件环境

1、显卡:2080Ti
2、CUDA环境:cuda10.1,cudnn7.6.3

anaconda3环境

1、python=3.6
2、opencv=3.4.2
3、pycocotools=2.0.0

问题

1、ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/fpi/anaconda3/envs/abcnet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1400, in _run_ninja_build check=True) File "/home/fpi/anaconda3/envs/abcnet/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
原因
ninja这个包在bash下查看版本:

解决办法
将torch的源码cpp_extension.py里面的源码的nijia版本读取的"-v"改成"–version",如下所示:
2、g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/vision.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cpu.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.o: No such file or directory g++: error: /home/fpi/Videos/ABCNet.pytorch/detectron2/build/temp.linux-x86_64-3.6/home/fpi/Videos/ABCNet.pytorch/detectron2/detectron2/layers/csrc/cuda_version.o: No such file or directory error: command 'g++' failed with exit status 1
原因
conda和pip安装的依赖项或有不同导致不能混用
解决办法
仅使用pip安装依赖项,成功了;

附上pip安装教程:

http://aiuai.cn/aifarm1288.html

【detectron2】detectron2在ubuntu16.04系统下安装报错问题相关推荐

  1. ubuntu16.04系统下安装fasttext文本分类库

    安装方法: 1.conda install libgcc(解决下面的错误) 2.pip install fasttext 出现错误: ImportError: /home/chris/anaconda ...

  2. 如何在64位Ubuntu16.04系统下安装electron

    一.Electron简介 Electron[官网https://electronjs.org/]是由Github开发,基于Chromium和Node.js,使用JavaScript.HTML和CSS等 ...

  3. linux(ubuntu16.04)系统下Matlab2015b软件下载与安装

    Linux版Matlab2015b软件下载安装与运行 一.Matlab软件(Linux版)百度网盘下载 二.软件安装教程 三.软件破解步骤 四.打开软件和添加环境变量 五.创建linux桌面快捷方式 ...

  4. 工作站Ubuntu16.04环境下安装nvidia显卡驱动

    近期实验室的工作站,由于teamviewer的原因又崩了.这次只能重装系统才得以解决.nvidia驱动安装步骤记录如下: 备注:工作站品牌为北京联众集群.配备有2块NVIDIA Titan xp 12 ...

  5. win10上安装两个ubuntu16.04系统分别安装在SSD和HHD

    01.我的电脑硬件 SSD固态硬盘中装有win10系统 主板:华硕Z370-H gaming    Intel i7-8700k 显卡:微星RTX2080Ti 目前电脑上SSD 512G装有win10 ...

  6. ubuntu16.04系统下谷歌浏览器不能拖入下载好的扩展程序离线包

    全地球人都知道,国内无法打开Chrome插件商店. 不过,国内有很多下载站,用户可以自行搜索,下载插件,然后离线安装. 但是,事情出现了变化. 最新版本的Chrome浏览器,主版本号为67,发布日期大 ...

  7. Ubuntu14.04系统下安装配置OpenCV 4.0.0开发环境全过程

    最近研究一个项目时需要用到OpenCV,于是自己尝试在Ubuntu 14.04系统下安装了这个开发环境.下面就将具体的过程记录一下,便于后期查阅和同行分享. 〇.开发环境 首先介绍一下我的开发环境: ...

  8. linux上pyenv卸载,在Ubuntu 18.04系统下安装pyenv的方法

    本文介绍在Ubuntu 18.04操作系统下安装pyenv的方法,使用它可以进行Python多版本管理,目的是防止不同的Python版本因为不兼容而出现错误.安装pyenv其实非常的简单,只需要在系统 ...

  9. Ubuntu18.04系统下安装IDL8.4版本(破解版)

    Ubuntu18.04系统下安装IDL8.4版本(破解版) 为了安装IDL,把硬盘都弄坏了的我已经不知道重装了多少遍IDL了/(ㄒoㄒ)/~~ 踩了N多的坑,遇到N多问题,这一次终于算是安装好,可以成 ...

最新文章

  1. glusterfs4.0.1 mempool 分析笔记
  2. 节能与新能源汽车技术路线图2.0_节能与新能源汽车技术路线图(2.0版)
  3. apimodel 可以重复吗_【惠蓉保】同时买了“惠蓉保”和百万医疗,可以重复报销吗?“惠蓉保”这么说...
  4. oracle 中的闪回
  5. [系统安全] 四十五.APT系列(10)Metasploit后渗透技术信息收集、权限提权和功能模块详解
  6. 用于大型的科学计算的计算机,科学计算器广泛适用于大、中、小学生、教师、科研人员及其他各界...
  7. 2018年12月份GitHub上最热门的Java开源项目
  8. python列表数据类型一致_python笔记--数据类型--列表
  9. 数据体系建设的开端,该如何规划平台?
  10. 【原创】告别恼人的水平滚动条——滚动条宽度到底是多少?
  11. MVC项目开发中那些用到的知识点(MVC IModelBinder)
  12. 查看SQL Server被锁的表以及如何解锁【转】
  13. (day 52 - 先序后序遍历计数 ) 剑指 Offer 55 - II. 平衡二叉树
  14. python transform hive_Hive使用TRANSFORM运行Python脚本总结
  15. ExtJs视频教程下载地址
  16. PRML第四章之分类的线性模型
  17. Air系列模块常见问题列表
  18. 虚拟机网络配置(配置动态ip和静态ip)
  19. 【转】如何用中控系统建造震撼的家庭影院
  20. odoo14调用akshare库报错:Fatal process out of memory: Failed to reserve memory for new V8 Isolate

热门文章

  1. EMC硬件设计规范与滤波器使用注意事项
  2. android 获取经纬度 有负值吗,获取纬度和经度的负值
  3. 08年普元软件发展回顾与09年展望
  4. 电视机的4k和8k是什么意思
  5. Spark广播变量与累加器
  6. python读matlab.fig_python可视化:matplotlib学习笔记
  7. 《4DenoiseNet: Adverse Weather Denoising from Adjacent Point Clouds》
  8. 这些java基础编程练习题你都会了吗?
  9. 【转载】人生如梦游戏间,RPG游戏开源开发讲座(JAVA篇)[3]——邯郸学步
  10. 2017.1.12——寒假集训第一天