一 前言
最近在安装mmdetection3d这个包报错,在此记录一下解决方案(每日一错)。
二 错误信息
- 错误操作
python setup.py install
- 报错信息如下
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
File "~/anaconda3/envs/detect_3d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 424, in unix_cuda_flags
cflags + _get_cuda_arch_flags(cflags))
File "~/anaconda3/envs/detect_3d/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1562, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range
三 解决方案
pip install .