Vs code

From wikiluntti

Introduction

Python and virtual environment

  1. Open a Python file
  2. Check the Status Bar to see which environment is active
  3. To switch environments, select the environment control in the Status Bar


Find the Python folder by clicking the run button and by checking the terminal. Python works on C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe

The virtual environment C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe -m venv .venv

and activate it by using .venv\Scripts\activate

Install packages

C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe -m pip install --upgrade pip


pip install opencv2-python