Installing Python on Windows is easy and takes just a few minutes. Follow this guide to install the latest version of Python on your system.
Step 1: Download Python Installer
- Go to the official Python website
๐ https://www.python.org/downloads/windows/ - Download the latest version
- Click the “Download Python 3.x.x” button.
- This will download an .exe (installer) file.
Step 2: Run the Installer
- Locate the downloaded file (e.g.,
python-3.x.x.exe
) and double-click to open. - Check the box that says “Add Python to PATH” (Important!).
- Click “Customize installation” (Optional: if you want additional features) or “Install Now”.
- The installation will begin. Wait a few minutes.
Step 3: Verify Installation
- Open Command Prompt (CMD):
- Press
Win + R
, typecmd
, and hit Enter.
- Press
- Check Python version:
- Type:
python --version
- Output should be something like:
Python 3.x.x
- Type:
- Check Pip (Python package manager):
- Type:
pip --version
- Output should be:
pip 23.x.x from C:\Python...
- Type:
Step 4: Running Python
- Open Command Prompt (CMD) and type:
python
- You should see a Python interactive shell (
>>>
), where you can type Python commands. - Try this:
print("Hello, World!")
- To exit, type:
exit()
Step 5: Installing Additional Packages (Optional)
To install libraries like NumPy, Pandas, etc., use pip
:
pip install numpy pandas matplotlib
๐ฏ You’re Done! Python is Successfully Installed on Windows ๐
Would you like help setting up an IDE like VS Code or PyCharm? ๐
Leave a Reply