🐍
Python For Starters
  • Overview
  • Python for starters
  • Content
  • Foreword
  • Introduction To Python
    • Python Installation
    • Variables
    • Python Data Types
    • Python Data Structures
    • Python numbers
    • Python strings
    • Python Boolean
    • Python constants
    • Python Comments
    • Type Conversion
    • Control flow in python
  • Python Functions
    • Function Definition
    • Function Parameter
    • Recursive Functions
    • Using Global Variables in Functions
    • Lambda Functions
  • What are Data Structures
    • Python Lists
    • Python Tuples
    • Python Dictionaries
    • Python Sets
    • Iterable in python
    • Python Map, Filter & Reduce Functions
  • Error handling in Python
  • Loop ... Else Clause, Partial Functions & Type Hints
    • Partial Functions
    • Type Hints
  • Python Modules
  • Python Libraries & Packages
    • Python Packages
  • Directory & IO
    • Python IO Module
  • Pyenv
  • Virtual Environments
    • Pipenv
    • Virtualenv
  • Object Oriented Programming in Python
    • Class
    • Class Methods
    • Python Class Inheritance
    • Python Class Polymorphism
    • Python special methods
  • Appendix
  • Contributing
Powered by GitBook
On this page
  1. Introduction To Python

Python Installation

PreviousIntroduction To PythonNextVariables

Last updated 2 years ago

There are a few ways to install Python, depending on your operating system and whether you want to install the latest version or a specific version. Here are some general steps to follow:

  • Go to the and click on the "Downloads" link.

  • On the downloads page, you will see a list of the latest stable releases of Python. Choose the version you want to install by clicking on the corresponding download link.

  • If you are running Windows, a Python installer will be downloaded to your computer. Run the installer and follow the prompts to install Python, make sure to select the option to add Python to your PATH, so you can run Python from the command line.

  • If you are running macOS or Linux, you can also download the Python installer, but there are other options available as well. For example, you can use a package manager (such as Homebrew or apt-get) to install Python. Alternatively, you can build and install Python from source code.

Once Python is installed, you can check the version by running the following command in a terminal or command prompt:

python --version

This will print the version of Python that is installed on your system.

Official Python Website