VISUAL STUDIO CODE · ОСНОВЫ · LESSON 03

Install Python

Interpreter and extension · about 14 minutes

Learning with progressRead the summary for free. To save the work, log in to the account.
STEP 1

Editor and Python - different programs

VS Code helps to write code, and Python does it. Install Python separately or check that it already exists.

✦ Once installed, open the new terminal to see Python.

STEP 2

Add extension

On the left in VS Code, open Extensions, find Python from Microsoft and install it. Then select the interpreter using the command Python: Select Interpreter.

✦ Extension alone does not establish an interpreter.

TRY IT YOURSELF

Practice

Check Python with py -3 --version on Windows or python3 --Zversion on macOS/Linux. Then install the Python extension in VS Code and find the selected interpreter.

Windows

Open the Python download page for Windows and follow the current instructions.

Official instruction альная
macOS

Open the Python page for macOS; do not use the Python system for lessons.

Official instruction альная
Linux

Check out python3 --version: Many distributions already have Python. If not, see the instructions for your distribution.

Official instruction альная