Python set-up on PC Command Prompt

Photo by Carlos Muza on Unsplash

Python set-up on PC Command Prompt

To set up Python on your system using the command prompt, follow these steps:

Step 1: Download Python

  1. Visit the official Python website: Go to python.org and download the latest version of Python for your operating system (Windows, macOS, or Linux).

Step 2: Install Python

  1. Run the installer: Open the downloaded Python installer.

  2. Select options:

    • Check the box that says "Add Python to PATH". This is crucial for accessing Python via the command prompt.

    • Click "Install Now" to install with default settings.

Step 3: Verify the Installation

  1. Open Command Prompt: Press Win + R, type cmd, and hit Enter.

  2. Check Python version: Type the following command and press Enter:

     python --version
    

    This should display the installed Python version, confirming that Python is installed correctly.