View my account

unable to install pyrealsense library in python 3.8 in mac

Comments

3 comments

  • MartyG

    Hi Revathi  You will not be able to use the pip install method of installing the Python wrapper if using Python 3.8.  This is because there is not a pip pyrealsense2 package for 3.8.  The available packages go up to 3.7 at the time of writing this.

    Also, the pip pyrealsense2 packages require a processor chip with x86 or x64 architecture, so if you have a recent Mac model with the new Arm based Apple Silicon M1 then the CPU architecture of M1 would likely be incompatible with pip pyrealsense2 installation.

    You should be able to use the pip install method on Windows if using Python 2.7, 3.6 or 3.7 though.

    If the pip install method is not suitable for your computer then you can instead install the Python wrapper by building it from source code.  This is also the recommended method for building the wrapper for Python 3.8.

    In regard to programming in Python, the example RealSense SDK programs provided in the link below are a good starting point, especially the Tutorial 1 introductory example.

    https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples#sample-code-for-intel-realsense-python-wrapper 

    0
    Comment actions Permalink
  • Revathi

    sir, here with your guidance that I installed python 3.7.9 for using pyrealsesnse2 still I am getting same error when I used python 3.8 that ERROR: Could not find a version that satisfies the requirement pyrealsense2
    ERROR: No matching distribution found for pyrealsense2

    can you please kindly guide me to resolve the issues

    0
    Comment actions Permalink
  • MartyX Grover

    Is it the Mac that you are installing Python 3.8 on please?

    Also, are you building the Python wrapper with pip or building source code?

    0
    Comment actions Permalink

Please sign in to leave a comment.