/home/katoa/miniconda3/envs/yolov5Rice/lib/python3.9/site-packages/torch/utils/cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja… Falling back to using the slow distutils backend.
warnings.warn(msg.format(‘we could not find ninja.’))
reading manifest file ‘nms_rotated.egg-info/SOURCES.txt’
writing manifest file ‘nms_rotated.egg-info/SOURCES.txt’
running build_ext
error: [Errno 2] No such file or directory: ‘:/usr/local/cuda-11.7:/usr/local/cuda-11.7/bin/nvcc’
linux系统
安装旋转目标检测非极大抑制库(备忘录一下)
- 先确定 cuda 是否安装成功
nvcc -V
- 安装成功的话直接在命令行里输入
export CUDA_HOME=/usr/local/cuda
- 再输入
python setup.py develop
这样就安装成功啦