0% found this document useful (0 votes)
25 views6 pages

Python Installation Guide for Windows & Mac

Uploaded by

henry.n.6699
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views6 pages

Python Installation Guide for Windows & Mac

Uploaded by

henry.n.6699
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Python 3 Installation for Windows

Step 1: Open below URL and click on the latest release of Python –

[Link]

At the time of publishing this document, the latest Python 3 release is version 3.8.5

Note: If your Windows installation is a 32-bit system, you need the Windows x86 executable installer. If
your Windows is a 64-bit version, you need to download the Windows x86-64 executable installer.

Step 2: Run the Python Executable Installer and select Install now (the recommended installation)
options –

Also, select “Add Python 3.8 to PATH”


After installation, Close the window.

Step 3: Verify Python was Installed on Windows –


Type python – V in Command Prompt. The output should display your installed version of Python. In our
case, it is “Python 3.8.5”

Step 4: Verify Pip was Installed –

Pip is a powerful package management system for Python software packages.

Enter pip -V in the console. If Pip was installed successfully, you should see the following output:

Pip has not been installed yet if you get the following output:

’pip’ is not recognized as an internal or external command, Operable program or batch file.

Install Jupyter Notebook on Windows


Jupyter Notebook is an open-source web application that allows to create and share documents that
contain live code, equations, visualizations, and narrative text.

PIP is a package management system used to install and manage software packages/libraries written in
Python. These files are stored in a large “on-line repository” termed as Python Package Index (PyPI).

pip uses PyPI as the default source for packages and their dependencies.

Command: python -m pip install jupyter


Use the following command to launch Jupyter using command-line:

jupyter notebook
Python 3 Installation for Mac
Step 1: Install Homebrew (Part 1)

1. Open a browser and navigate to [Link] After the page has finished loading, select the
Homebrew bootstrap code under “Install Homebrew”. Then hit Cmd+C to copy it to the
clipboard. Make sure you have captured the text of the complete command because otherwise
the installation will fail.

2. Now you need to open a [Link] window, paste the Homebrew bootstrap code, and then
hit Enter. This will begin the Homebrew installation.

3. If you’re doing this on a fresh install of macOS, you may get a pop-up alert asking you to install
Apple’s “command line developer tools”. You will need those to continue with the installation,
so please confirm the dialog box by clicking on “Install”.

Step 2: Install Homebrew (Part 2)

You can continue installing Homebrew and then Python after the command line developer tools
installation is complete:

1. Confirm the “The software was installed” dialog from the developer tools installer.

2. Back in the terminal, hit Enter to continue with the Homebrew installation.

3. Homebrew asks you to enter your password so it can finalize the installation. Enter your user
account password and hit Enter to continue.

Step 3: Install Python


Once Homebrew has finished installing, return to your terminal and run the following command:

Note: When you copy this command, be sure you do not include the $ character at the beginning. That
is just an indicator that this is a console command.

This will download and install the latest version of Python. After the Homebrew brew install command
finishes, Python 3 should be installed on your system.

Step 4: Verify Python was Installed on Mac OS –

1. Open the terminal by launching [Link].

2. Type pip3 and hit Enter.

3. You should see the help text from Python’s “Pip” package manager. If you get an error message
running pip3, go through the Python install steps again to make sure you have a working Python
installation.

Install Jupyter Notebook on MacOS


Step 1: Use below command to install jupyter –

brew install jupyter

Step 2: Use below command to start jupyter –

jupyter notebook

Common questions

Powered by AI

Using Homebrew on macOS for installing Python and Jupyter Notebook offers benefits such as ease of installation and management of complex dependencies since Homebrew automates the process and manages these dependencies efficiently . Compared to direct downloads on Windows, Homebrew can provide easier updates and a more streamlined environment because it is tightly integrated with macOS's package handling .

On Windows, the verification process involves opening the Command Prompt and typing 'python -V' to check the Python version and 'pip -V' to verify Pip installation . On macOS, the verification is done by opening Terminal and typing 'pip3', which should display the help text from Pip, otherwise the installation isn't successful .

On macOS, Jupyter Notebook is installed using 'brew install jupyter' and started with 'jupyter notebook' . On Windows, it is installed through Pip using 'python -m pip install jupyter' and started similarly with 'jupyter notebook' . This indicates that macOS utilizes Homebrew as its package manager, reflecting a different environment setup where Homebrew simplifies package management as opposed to the direct use of Pip on Windows.

If Pip is not recognized as a command in Windows, it implies a failed installation or incorrect PATH configuration. The steps to resolve this include ensuring Python is added to the PATH during installation or manually configuring the PATH environment variable to include the location of the Python and Pip executables .

Verifying Pip installation separately after Python confirms that Python's package management system is correctly set up, addressing common issues like incorrect PATH settings or Pip being accidentally omitted during Python installation . This step ensures that Pip commands can be used to manage Python packages without errors.

The installation of Apple's command line developer tools is necessary for the Python installation process on macOS using Homebrew because these tools provide essential components and libraries needed for the successful compilation of Homebrew formulas, including Python . Without these tools, the Homebrew installation could fail or encounter errors.

Adding Python to PATH during installation is recommended because it enables running Python and Pip commands directly from the command line without specifying the full path to the Python executable each time . Skipping this step will require manual configuration of the PATH environment variable, leading to potential complications in executing Python commands globally on the system .

On macOS, the initial step for installing Python involves installing Homebrew, a package manager, by running a bootstrap code in the Terminal and installing Apple's command line developer tools if prompted . On Windows, the process starts by downloading the Python installer directly from the Python website .

On macOS, after using Homebrew to install Python 3, the command 'pip3' is used in Terminal to check the installation. If successful, it should display the help text from Pip's package manager, indicating that Python and Pip are correctly installed .

Using a package manager like Homebrew is significant for Python installations on macOS as it simplifies the installation, upgrade, and removal process of software packages, ensuring that all dependencies are handled automatically. This contrasts with manual installations, which can be more error-prone and require managing dependencies manually .

You might also like