安装octomap-python https://github.com/wkentaro/octomap-python pip install octomap-python==1.8.0.post11 执行pip install -e ‘.[example]’ 会报如下错,不予理会 ERROR: Command errored out with exit status 1: /home/yg/venv/bin/python /home/yg/venv/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp31vxn3fy Check the logs for full command output. 执行octomap-python/examples/insertPointCloud.py一开始会提示如下错误 ImportError: lib dynamicedt3d.so.1.8: cannot open shared object file: No such file or directory 找了很久,解决方法参考: https://github.com/wkentaro/octomap-python/issues/1 https://stackoverflow.com/questions/23916186/how-to-include-external-library-with-python-wheel-package/42106034#42106034具体是: 找到有libdynamicedt3d.so.1.8文件的目录,添加到~/.bashrc并source一下: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yg/NeuralCoMapping-main/venv/lib/venv/lib 再次运行examples目录下的insertPointCloud.py 可以正常显示了