A barebones template for starting Python 3 projects.
- (Optional) Consider using a virtual environment manager such as pipx or venv.
- pipx is the modern recommendation but requires installation
- For venv which is built-in, simply run 'Python: Create environment' if you are using Visual Studio Code, or
python -m venv .venvfrom the terminal. You may need to reload your IDE after running this if you are using one.
- Install dependencies with
pip install -r requirements.txt. - Run the project by selecting 'Terminal' > 'Run task' > 'python: app.py' if using Visual Studio Code, or
python main.pyin the terminal. - (Optional) A VSCode debug profile is also provided, you can use this to run or debug the program. See the VSCode docs for more info.