Windows Setup (Python)

<< Click to Display Table of Contents >>

Navigation:  Getting started with CVB tutorials > Setting up your system > Python and Qt >

Windows Setup (Python)

1Download and install Python with recommended minimal version (see Setting up your system). Ensure to get the right version of 32 bit or 64 bit!

2Set the environment variable by adding the Python path and Python Scripts path to the PATH variable:
- Windows-Key Windows-Key + R
- Type sysdm.cpl
- Set the PATH
python_Windows1

 

    Current supported Python version by CVB can be read from CVB wheel name (example here 3.6 /3.7 / 3.8  / 3.9) :

AppNoteWheel

3Go to %CVB%Lib\Python and install the python wheel with python -m pip install <WHEEL>.whl or pip install <wheel>
 

4Install following additional 3rd party dependencies, if required:
- python -m pip install pyside2 for all tutorials with Qt and python.
python -m pip install numpy for all tutorials with NumPy.
 

5It is recommended to use Visual Studio Code for developing with python. After installing Visual Studio Code also install the Python extension as described here: https://code.visualstudio.com/docs/python/python-tutorial.
.
VisualStudioCode_Download
 
VisualStudioCode_Extensions
 

6Install Qt as described in following Windows Setup (C++).