-
Install Python 3.10 (skip this step if you already have Python 3.10 installed)
-
Install pyenv
-
Install Python version
pyenv install 3.10
- Switch to Python version
pyenv shell 3.10
-
-
Install pipenv
pip install --user pipenv
- Create virtual environment directory
mkdir .venv
- Create virtual environment and install dependencies
python -m pipenv install --dev --python 3.10
- Activate virtual environment
pipenv shell
or
source .venv/bin/activate
- Check if everything is working
python --version
-
Go to tab
Run and Debug
in VSCode (shortcut:Ctrl + Shift + D
) -
Select
Python: Main
in dropdown -
Press
F5
to run the program or clickRun
button
-
Go to tab
Testing
in VSCode (shortcut:Ctrl + Shift + T
) -
Click
Run Tests
button
# Format code
black src/
# Sort imports
isort src/