[Python Workflows] Python VS Code environment setup — 2024, Concise version
This article is for basic, quick Python development configurations that should satisfy most common needs. For specific needs that require advanced settings, please refer to the references at the end and/or official documentations.
My environment
This is my environment as an example, settings on other operating systems should be largely the same.
- Windows 11
- Windows subsystem for Linux (WSL) — Debian v12(bookworm)
Install Python
Check if Python is already installed, if so then you can jump over this section.
python3 --version
If not (e.g., returning error like python3
command not found), install Python3 (in this case Python 3.11):
sudo apt-get update
sudo apt-get install python3.11-full
python3.11-full
package in Debian contains all standard libraries, management and environment tools such as venv
and pip
, which is recommended.
After installation complete, verify python using the first command python3 --version
.