ubuntu16.04 安装python-pcl

原博文链接:https://blog.csdn.net/zhanghm1995/article/details/86218220
为方便读者安装,博文稍有改动。
PCL库是用来处理三维点云非常方便的库,库本身是C++的,现在有Python封装的版本:python-pcl,在安装过程中有一些注意事项及错误解决,本博客记录下自己的安装过程,供大家参考。
一、安装
1、安装依赖

sudo apt-get install cmake g++ libboost1.58-all-dev libeigen3-dev libflann-dev python libusb-1.0–0-dev libudev-dev freeglut3-dev doxygen graphviz libpng12-dev libgtest-dev libxmu-dev libxi-dev libpcap-dev libqhull-dev libvtk5-qt4-dev python-vtk libvtk-java

2、安装PCL
python-pcl需要在PCL的基础上运行,因此需要先安装PCL点云库。安装PCL可根据之前写的这篇文章,链接:https://blog.csdn.net/u012614287/article/details/89460228

3、Python依赖库安装

pip install --upgrade pip
pip install cython==0.25.2
pip install numpy

4、安装python-pcl(需要安装git)
源码:https://github.com/strawlab/python-pcl

git clone https://github.com/strawlab/python-pcl.git
cd python-pcl
sudo python setup.py build_ext -i
sudo python setup.py install

你可能感兴趣的:(点云,python,git,问题解决)