Skip to content

r3aprz/Python-installation-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Python and pip Installation Guide

This guide provides step-by-step instructions on installing Python and pip using the terminal on both Windows and macOS/Linux systems.

Windows:

  1. Download Python:

    • Visit the official Python website at https://www.python.org/downloads/.
    • Click on "Downloads" and select the latest version of Python for Windows (e.g., "Python 3.x.x").
  2. Run the Installer:

    • After downloading, open the executable file (usually a .exe) you downloaded.
    • Make sure to select the "Add Python x.x to PATH" option during installation. This allows you to run Python from the command prompt without specifying the full path.
  3. Verify the Installation:

    • Open the command prompt and type:
      python --version
      You should see the installed Python version.
  4. Upgrade pip (Optional but Recommended):

    • Run the following command in the command prompt:
      python -m pip install --upgrade pip

macOS/Linux:

  1. Check for Existing Python:

    • Many Linux distributions and macOS come with Python preinstalled. Check the current version using the following command in the terminal:
      python --version
  2. Update the System (Optional but Recommended):

    • To ensure you have the necessary development tools, update your system with the following commands:
      • Ubuntu/Debian:
        sudo apt update
        sudo apt upgrade
      • Fedora:
        sudo dnf update
        sudo dnf upgrade
  3. Python Installation:

    • If Python is not already installed, use the package manager for your distribution. For example, on Ubuntu/Debian, you can use:
      sudo apt install python3
  4. Verify the Installation:

    • Confirm that Python is installed correctly with the command:
      python3 --version
  5. pip Installation:

    • Use the appropriate package manager for your system and install the python3-pip package (or python-pip on some distributions):
      • Ubuntu/Debian:
        sudo apt install python3-pip
      • Fedora:
        sudo dnf install python3-pip
  6. Upgrade pip (Optional but Recommended):

    • Run the following command in the terminal:
      python3 -m pip install --upgrade pip

You have now successfully installed Python and pip on your system, and you are ready to start developing with Python!

About

A short tutorial about how to install python and pip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published