Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
1 views

installing python

The document provides a step-by-step guide for installing Python on Windows, macOS, and Linux (Ubuntu/Debian). It includes instructions for downloading the installer, running it, and verifying the installation for each operating system. Additionally, it covers checking for pip installation and how to install it if necessary.

Uploaded by

esha70805
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

installing python

The document provides a step-by-step guide for installing Python on Windows, macOS, and Linux (Ubuntu/Debian). It includes instructions for downloading the installer, running it, and verifying the installation for each operating system. Additionally, it covers checking for pip installation and how to install it if necessary.

Uploaded by

esha70805
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PYTHON INSTALLATION

Installing Python is pretty straightforward. We see a step by step guide


according to our operating systems:

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.

For Linux (Ubuntu/Debian):


1. Open Terminal.
2. Install Python:
3. sudo apt update
4. sudo apt install python3
5. Verify Installation:
6. python3 --version

Check if pip (Package Installer) is Installed:


After installing Python, pip is usually installed by default.
 Check with:
 pip --version
 If not, install it:
 python -m ensurepip --upgrade

You might also like