export PYTHONPATH=$PYTHONPATH:/usr/local/lib Alternatively, copy the build output (librealsense2.so and pyrealsense2.so) next to your script. Note: Python 3 module filenames may contain additional information, e.g. pyrealsense2.cpython-35m-arm-linux-gnueabihf.so)