DEV Community

Abdulla Ansari
Abdulla Ansari

Posted on • Edited on

Day-1: Installing Python in Different OS | 100 Days Python

What is Python

Python is a high-level, interpreted programming language that is widely used in a variety of fields such as web development, scientific computing, data analysis, artificial intelligence, and more. It was first released in 1991 by Guido van Rossum and has since become one of the most popular programming languages in the world.

Python is known for its simplicity, readability, and ease of use, making it an ideal language for beginners to learn. It has a large and active community of developers who contribute to its development and provide support through online forums and resources.

Python is often used for scripting, automation, and rapid prototyping due to its ability to write code quickly and easily. It is also used in the development of web applications, data analysis tools, and machine learning algorithms. Python's extensive standard library provides a wide range of modules and functions that can be used to perform tasks such as file handling, network programming, and database connectivity.

One of the key advantages of Python is its cross-platform compatibility, meaning that it can run on a variety of operating systems such as Windows, macOS, Linux, and even mobile platforms such as Android and iOS.

Installing Python on Different OS (Windows, Mac and Linux)

Sure, here are the steps to install Python on Windows, Mac, and Linux:

Installing Python on Windows:

  1. Go to the official Python website:
  2. https://www.python.org/downloads/windows/
  3. Under the "Download Python" heading, click on the latest version of Python for Windows.
  4. Scroll down to the bottom of the page and download the installer that matches your version of Windows (32-bit or 64-bit).
  5. Run the installer and follow the prompts to complete the installation.
  6. Add Python to the PATH environment variable by checking the "Add Python to PATH" option during the installation process.

Installing Python on Mac:

  1. Go to the official Python website:
  2. https://www.python.org/downloads/mac-osx/
  3. Under the "Download Python" heading, click on the latest version of Python for Mac.
  4. Scroll down to the bottom of the page and download the macOS installer.
  5. Run the installer and follow the prompts to complete the installation.

Installing Python on Linux:
Ubuntu/Debian:

  1. Open the terminal.
  2. Install the latest version of Python by typing the following command:
sudo apt-get install python3
Enter fullscreen mode Exit fullscreen mode
  1. Verify the installation by typing:
python3 --version
Enter fullscreen mode Exit fullscreen mode

Fedora/CentOS:

  1. Open the terminal.
  2. Install the latest version of Python by typing the following command:
sudo dnf install python3
Enter fullscreen mode Exit fullscreen mode
  1. Verify the installation by typing:
python3 --version
Enter fullscreen mode Exit fullscreen mode

Arch Linux:

  1. Open the terminal.
  2. Install the latest version of Python by typing the following command:
sudo pacman -S python
Enter fullscreen mode Exit fullscreen mode
  1. Verify the installation by typing:
python --version
Enter fullscreen mode Exit fullscreen mode

Conclusion
That's it! Once you've completed these steps, you should have Python installed on your Windows, Mac, or Linux machine.

Next:

Day 2: Some Amaging Programs in Python | 100 Days Python

Top comments (0)