python-pcl windows平台极简安装
依旧是在基于conda环境管理下安装python-pcl, 操作平台为windows.
Steps:
1. 利用 conda 创建新环境
>> conda create -n pcl python=3.6
>> conda activate pcl
>> pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
>> pip install numpy
2. 下载windows平台下的pre-built .whl文件
这里我提供一份我好不容易才找到的一份(收集不易,点个赞吧👇)
python_pcl-0.3-cp36-cp36m-win_amd64.whl
>>> pip install python_pcl-0.3-cp36-cp36m-win_amd64.whl
3. OpenNI 支持下载
首先去OpenNI官网,找到对应windows 64位的版本下载:
下载OpenNI 2.2.0.33 Beta(x64)
解压->安装
然后在 X:\OpenNI2\Samples\Bin这个位置里面找到OpenNI2.dll
复制到 X:\Anaconda3\envs\pcl\Lib\site-packages\pcl里
4. Test
>> python
Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcl
顺手把open3d也安装一下:
>> conda install -c open3d-admin -c conda-forge open3d