To set up Python on your system using the command prompt, follow these steps:
Step 1: Download Python
- 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
Run the installer: Open the downloaded Python installer.
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
Open Command Prompt: Press
Win + R
, typecmd
, and hit Enter.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.