-
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 shellor
source .venv/bin/activate- Check if everything is working
python --version-
Go to tab
Run and Debugin VSCode (shortcut:Ctrl + Shift + D) -
Select
Python: Mainin dropdown -
Press
F5to run the program or clickRunbutton
-
Go to tab
Testingin VSCode (shortcut:Ctrl + Shift + T) -
Click
Run Testsbutton
# Format code
black src/
# Sort imports
isort src/