installing python
installing python
For Windows:
1. Download Python Installer:
o Go to the official Python website.
o Click the Download Python button (it will download the latest
version).
2. Run the Installer:
o Open the downloaded .exe file.
o IMPORTANT: Check the box that says Add Python to PATH.
o Click Install Now (or choose Customize Installation if you need
specific features).
3. Verify Installation:
o Open Command Prompt (Press Win + R, type cmd, and hit
Enter).
o Type: python --version or python
(Sometimes you may need to type python3 instead.)
If you see a version number, you’re good to go!
For macOS:
1. Install Using Homebrew (Recommended):
o Open Terminal.
o Install Homebrew if you don’t have it:
o /bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.
sh)"
o Install Python:
o brew install python
2. Verify Installation:
3. python3 --version
Use python3 instead of python on macOS.