This is a simple python project template for Visual studio code.
Create and activate virtual environment:
python -m venv .venv
"./.venv/Scripts/activate"
or
conda create -n yourenvname python=x.x anaconda
conda activate yourenvname
Clear git cached files and directories:
git rm --cached -r .vscode
git rm --cached .env
Set path to project root directory in .env
, e.g.:
PYTHONPATH=C:\\Users\\janezla\\Documents\\python-project-template
Set python path in vscode workspace settings, e.g.:
"python.pythonPath": "C:\\Users\\janezla\\Anaconda3\\envs\\yourenvname\\python"