-
Notifications
You must be signed in to change notification settings - Fork 0
Python
Andrei Montchik edited this page Jun 12, 2026
·
2 revisions
-
Install Python3:
sudo apt update; sudo apt install python3 python3-env python3 pip -
Check the installed Python version:
python3 --version -
Create project directory.
-
create venv in the project directory:
python3 -m venv .venv
- Activate the Python venv:
source .venv/bin/activate - Install the Misrosoft Python VSCode extension.
- Configure the Python interpreter:
Ctrl + Shift + P- Selecte "Python: Select Interpreter"
- Select
.venv/bin/python
- Activate Python venv on VSCode startup:
Add to .vscode/settings.json
{ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", "python.terminal.activateEnvironment": true } - Create
requirements.txtand add required libraries to it. - Install the required libraries:
pip install -r requirements.txt
- Activate venv
sudo apt update; sudo apt install nimnimble install nimpy