由于spconv团队更新了2.x版本,spconv1.2.1很难安装了,下面给出我个人成功安装的方法,在此谢谢Dudo这个老哥。
先从spconv下载包
git clone -b v1.2.1 https://github.com/traveller59/spconv.git
这里注意第三方包有三个是空的,我们要删除,我用到了pybind11,所以我另外下载了这个这个包替换掉空文件。
然后运行下面这个代码,
python setup.py bdist_wheel
接着进入dist文件夹
cd ./dist
里面有一个spconv-1.2.1-cp37-cp37m-linux_x86_64.whl的文件
我们最后用这个代码安装
pip to install spconv-1.2.1-cp37-cp37m-linux_x86_64.whl
这就完了,这是由于Cylinder3d需要用到,以后或许会出cylinder3d的学习笔记,冲。
/home/zdj/anaconda3/envs/pytorch/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
SetuptoolsDeprecationWarning,
running bdist_wheel
running build
running build_py
running build_ext
Release
|||||CMAKE ARGS||||| ['-DCMAKE_PREFIX_PATH=/home/zdj/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch', '-DPYBIND11_PYTHON_VERSION=3.7', '-DSPCONV_BuildTests=OFF', '-DPYTORCH_VERSION=10600', '-DCMAKE_CUDA_FLAGS="--expt-relaxed-constexpr" -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/zdj/spconv/build/lib.linux-x86_64-3.7/spconv', '-DCMAKE_BUILD_TYPE=Release']
-- Caffe2: CUDA detected: 11.1
-- Caffe2: C