Vs code: Difference between revisions
From wikiluntti
| Line 10: | Line 10: | ||
<code> | <code> | ||
C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe | C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe | ||
</code> | |||
The virtual environment | |||
<code> | |||
C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe -m venv .venv | |||
</code> | </code> | ||
Revision as of 13:12, 15 May 2026
Introduction
Python and virtual environment
- Open a Python file
- Check the Status Bar to see which environment is active
- 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
Install packages
C:\Users\user\AppData\Local\Programs\Python\Python313\python.exe -m pip install --upgrade pip
pip install opencv2-python