记录安装spconv1.0过程
安装环境:
ubuntu 16.04
cuda9.0
pytorch1.1
cmake 3.13.5
gcc,g++ 7.5
前面跟大多数教程一样:
git clone https://github.com/traveller59/spconv.git --recursive
cd spconv/
git checkout 8da6f96
cd third_party/
git clone https://github.com/pybind/pybind11.git
cd pybind11/
git checkout 085a294
然后是安装这里特别容易出问题:
cd ../..
python setup.py bdist_wheel
很容易出现什么cmake[…]的错误,个人认为是cmake和gcc版本问题,我在多次尝试cmake版本3.24、3.17、3.5,最后选择用的cmake3.13.5能成功编译,gcc的话也是5.4改到了7.5
最后就是`
cd ./dist
python -m pip install spconv-1.0-cp36-cp36m-linux_x86_64.whl
这里cp36是指的python版本,如果是python3.7就改成cp37