-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyrealsense installs to python2 instead of python3 #11698
Comments
Hi @eladpar I recommend using the Jetson installation guide at #6964 (comment) which is further down the page that you linked to. |
Sorry my link was wrong I did use the one you sent |
/pybackend2.cpython-38-aarch64-linux-gnu.so is a filename that would be created when building the pyrealsense2 wrapper if Python 3.8 is installed on your computer. Have you performed steps 7 and 8 - setting the PYTHONPATH and sourcing the bashrc file? |
But i'm in step 6 ... steps 7 and 8 are not relevant because the folder is not located in /usr/local/lib/python3.8 |
In the guide there is a typing mistake where there should not be a space between '-' and 'DPYTHON' in:
Did you close up the space between - and DPYTHON when using the CMake build instruction? And did you modify the instruction to say python3.8 instead of python3.6 if 3.8 is the Python version that is installed on your computer? You can confirm which Python 3 version you have with the command which python3 |
I changed it to be '-DPYTHON_EXECUTABLE=/usr/bin/python3' and I checked that my python3 executable is '/usr/bin/python3' |
It may be worth starting the installation process again and when you get to step 6, use the CMake command below instead whilst in the 'build' folder to uninstall the currently installed SDK and then begin a new installation of the SDK and pyrealsense2 wrapper. sudo make uninstall && make clean && make -j4 && sudo make install If you are not certain which Python 3 version number you have got installed on your computer then use:
|
Hi @eladpar Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
I have the same issue, it install into python2.7 instead of python3, I follow the link you send |
Hi @IricEmage Please create a new issue for your problem by visiting the front page of this support forum at the link below and clicking the green New Issue button. Thanks! https://github.com/IntelRealSense/librealsense/issues/ |
I got it. Thanks you |
I want my pyrealsense2 to be installed in python3
iv'e been using this instruction by @MartyG-RealSense
#6964 (comment)
I run the command:
cmake ../ -DFORCE_RSUSB_BACKEND=ON -DBUILD_PYTHON_BINDINGS:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true -DBUILD_WITH_CUDA:bool=true
But still when I run sudo make install I get:
-- Up-to-date: /usr/lib/python2.7/dist-packages/pyrealsense2/pybackend2.cpython-38-aarch64-linux-gnu.so.2.50.0
Why is not installing in python3 dist-packages?
The text was updated successfully, but these errors were encountered: