Python environment setup

Hey there!
I’m new to ZED, ZED SDK, and python and I’m having troubles setting up the environment to run my ZED 2i.

I’ve already run $ python -m pip install cython numpy opencv-python pyopengl but when trying to run the install script I’m getting this error.

ModuleNotFoundError: No module named 'requests'

(Also, I’m running the file on a terminal with this command python .\get_python_api.py. Is this the correct approach?)

Thank you!

Hi @Rengo,

Welcome to the Stereolabs forums! :wave:

The get_python_api.py requires the requests package to be installed. You can do this with:

python -m pip install requests

With this, the command should work.

Okay some evolution. That error is fixed! But now I’m getting this one:

ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python312\\Scripts\\f2py.exe' -> 'C:\\Python312\\Scripts\\f2py.exe.deleteme'

Hi,

I apologize I see that you are using python3.12, and we are currently not compatible with this version of Python. Please try again using python3.11 if possible, as this is the latest version we support.

Well, I somehow got it to work with 3.12 ._.