DEV Community

Salah Ud Din
Salah Ud Din

Posted on

Python and Visual Studio Code on Windows 10.

GitHub: Salah Ud Din - 4yub1k

Goals:

  • Download the Python setup.
  • Install Python.
  • Download the VScode setup.
  • Install VScode.
  • Install the VScode extension “Python”.
  • Run you first python.py script.
  • Video tutorial complete.

Download Python:

Go to Python official page : [Link]. And drop down Downloads, click “windows” in sub menu.

Download Python

Now, Under “Stable Releases”, scroll down and search for the required version. As I need to install python’s latest version for “windows 64-bit”, will select “Windows installer (64-bit)”, you can check whether your windows version is 64 or 32 bit, just visit Microsoft : [windows version].

Python Versions

Install Python:

Open the downloaded python installer, you will see this window as shown in image below. Check the “ADD pathon.exe to PATH” then click on “Install Now”.

Install Python

Python installation successful
Python installation successful.

Download VScode:

Go to VScode official page : [Link]. And click on Download at right top corner.

Download Vscode

As we don’t want the vscode to run for all users, we will install “User Installer”. Click on x64 in front of User Installer to downloads it.

VScode Version

Install VScode:

Open the vscode .exe you download.

Install VScode

Click “I accept the agreement”, and keep clicking Next. If you want shortcut of vscode on Desktop screen, make sure to check this box as shown below.

VScode

VScode
VScode installation completed, click finish to open VScode.

Install Python Extension:

Now, we need to install a very powerful extension of vscode for python. For more about it, go to link [Python Extension]. Click on the Extensions as shown.

VScode

Search for python in search box.

VScode
Click the one from Microsoft.

VScode
Then click on install the extension and wait for installation to complete. We are ready !

VScode

Run Python Script:

create a file , fileName.py. We will use first as file name here, ‘first.py’.
Go to “Terminal Menu” and click “New Terminal”

Python VScode

It will open the command line for you.

VScode Terminal
Enter “py fileName.py” to run the script.

VScode

Video Link : [Python & VScode Installation]

Thank you. 😎👍

Top comments (0)