Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.3 KB

File metadata and controls

73 lines (48 loc) · 2.3 KB

Installing Python

For Windows

  1. Open a Web Browser: Open your preferred web browser and go to the official Python website: Python Downloads.

  2. Download Python: Click on the "Downloads" tab and select the version of Python you want. Choose the latest version marked as "Latest Python 3 Release."

  3. Run the Installer: Once the installer is downloaded, double-click on the downloaded file (python-3.x.x.exe) to run the installer.

  4. Configure Python: During the installation, make sure to check the box that says "Add Python to PATH." This makes it easier to run Python from the terminal.

  5. Complete Installation: Follow the prompts in the Python Installer. Click "Install Now" to start the installation process.

  6. Verify Installation: Open a new Command Prompt and type python --version

You should see the installed Python version.

For macOS

  1. Open Terminal: Open the Terminal application. You can find it using Spotlight by pressing Cmd + Space and typing "Terminal."

  2. Install Homebrew (if not installed): /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  3. Install Python using Homebrew: brew install python

  4. Verify Installation: Type the following command to check the installed Python version with python3 --version

For Linux (Ubuntu/Debian)

  1. Open Terminal: Open a terminal window by pressing Ctrl + Alt + T.

  2. Update Package List: sudo apt-get update

  3. Install Python: sudo apt-get install python3

  4. Verify Installation: Type the following command to check the installed Python version: python3 --version

For Linux (Fedora)

  1. Open Terminal: Open a terminal window by pressing Ctrl + Alt + T.

  2. Install Python: sudo dnf install python3

  3. Verify Installation: Type the following command to check the installed Python version: python3 --version