IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.63k stars 4.83k forks source link

pip install pyrealsense2 Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement pyrealsense2 (from versions: none) ERROR: No matching distribution found for pyrealsense2 #13459

Closed Zazmi2 closed 1 week ago

Zazmi2 commented 4 weeks ago

I am using the intel realsense camera d435. I am using a windows surface laptop ARM64 Processor. Pip install pyrealsense2 doesn't work for me. Also having trouble with building from source. Any help would be greatly appreciated!

MartyG-RealSense commented 4 weeks ago

Hi @Zazmi2 Which librealsense SDK version are you using, please? The recent 2.56.1 and 2.56.2 versions do not have pip packages because they are beta versions. The most recent version that can be used with pip install pyrealsense2 is 2.55.1.

Zazmi2 commented 4 weeks ago

I am using 2.56.2 but I am not able to do pip install pyrealsense2 regardless on my laptop. Here is the error I get: PS C:\Users\vagmi> pip install pyrealsense2 Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement pyrealsense2 (from versions: none) ERROR: No matching distribution found for pyrealsense2 PS C:\Users\vagmi>

I don't think it is compatible with my laptop - Windows Arm64 - Qualcomm.

Is there any workaround for using pyrealsense2

MartyG-RealSense commented 4 weeks ago

On a PC laptop you need a Python 3 version that is supported by pyrealsense2's pip install method. When using librealsense 2.55.1, the supported Python versions by pip install pyrealsense2 are 3.7 to 3.11. So you would have to have one of these Python 3 versions installed on your computer in order for pip to work.

Support for Python 3.7 is ended in librealsense 2.56.1 onwards because its age means that it is classed as End of Life (EOL).

MartyG-RealSense commented 2 weeks ago

Hi @Zazmi2 Do you require further assistance with this case, please? Thanks!

MartyG-RealSense commented 1 week ago

Case closed due to no further comments received.

Rasmus-UCL commented 3 days ago

i am currently running into the same problem here

PS C:\Users\xxxx---- pip3 install pyrealsense2 Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement pyrealsense2 (from versions: none) ERROR: No matching distribution found for pyrealsense2 PS C:\Users\xxxx---- python --version Python 3.12.6 PS C:\Users\xxxx---- pip3 --version pip 24.3.1 from C:\Users\xxxx\AppData\Roaming\Python\Python312\site-packages\pip (python 3.12)

can you help me point to the right directions to make it work

MartyG-RealSense commented 3 days ago

Hi @Rasmus-UCL The pip install method of installing the pyrealsense2 wrapper from packages only supports up to Python 3.11 at the time of writing this as Python 3.12 pip packages have not yet been released. This is what is causing the mismatch message.

It is also necessary to use librealsense SDK version 2.55.1, as the recent intermediate beta versions 2.56.1 and 2.56.2 do not provide pip packages.

It is possible to use Python 3.12 if the pyrealsense2 wrapper is built from source code instead of installed from packages.