Install Pyrealsense2 on Ubuntu18.04

https://blog.csdn.net/qq_22598167/article/details/89948089

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python

1.github上下载最新librealsense包

2.cd librealsense

mkdir builde && cd build

cmake-gui

配置

Install Pyrealsense2 on Ubuntu18.04_第1张图片

make -j8

make install

3.Alternatively, copy the build output (librealsense2.so and pyrealsense2.so) to python_root

  • Note: Python 3 module filenames may contain additional information, e.g. pyrealsense2.cpython-35m-arm-linux-gnueabihf.so)

4.activate一个conda环境

pip3 install pyrealsense2

5.(!!!重要 !!!)update your PYTHONPATH environment variable to add the path to the pyrealsense library

export PYTHONPATH=$PYTHONPATH:/root/anaconda3/lib/

 

你可能感兴趣的:(Linux)