Python Environment Setup

Python is one of the most popular languages of today. Python has syntax that is easy to learn and write.

To write code in Python programming language, you must first have the Python installed on your computer. Along with Python, you may also need to install the following:

  • Pip - Pip is a package management utility tool that simplifies installation and management of software packages from Python Package Index (PyPI) and other package indexes.
  • Python Virtual Environment - A Python Virtual Environment is a tool that helps to create an isolated environment for a project.
  • Python Development IDE such as Vistual Studio Code or Pycharm IDE.

Install Python, Pip, and Virtual Environment

Select your platform below to install Python, Pip, and Python Virtual Environment:

Setup Python on Windows 10

Setup Python on Ubuntu 20.04/Ubuntu18.04/Linux

Install and Setup Python IDE

To install and setup Visual Studio Code IDE, do the followings:

  1. Download Visual Studio Code from its official website.
  2. After downloading, install it.
  3. Launch the Visual Studio Code IDE, go to View > Extensions and install the following extensions:
    • Python by Microsoft
    • Auto Rename Tag by Jun Han
    • Prettier - Code formatter

Note: To format code in Visual Studio Code, press Ctrl + Shift + I and save.