Python Installation Process: How to Download & Install Python?
How to Download and Install Python?
The first step in becoming a Python developer is to install or update Python on your system.
The setup process and installation of Python can be done in a number of methods:
-
downloading official Python distributions from Python.org,
-
installing through a package manager (Anaconda),
-
installing specialized versions for numerical computation, IoT, and embedded systems.
Check if you already have Python installed
You can use command-line apps like PowerShell to ensure whether you have Python already installed or not.
Tip: Here’s how you open PowerShell:
1. Press the âŠÅ¾ Win key.
2. Type PowerShell or cmd.
3. Press Enter.
In another way, you can right-click the Start button and select Windows PowerShell or Windows PowerShell (Admin).
If you’re interested in where the installation is located, then you can use the where.exe command in Command Prompt or PowerShell.
Install Python — Full Installer
Step 1: Select Version of Python to download the Full Installer and proceed to installation.
-
The Python for Windows page has the most up-to-date Windows downloads. On Windows, there are 32-bit (labeled x86) and 64-bit (labeled x86–64) versions, as well as many installation variants for each. The Latest Python 3 Release — Python 3.9.4 — can be found beneath the Python Releases for Windows.
Step 2: Download Python Executable Installer and install it.
-
Double-click the downloaded file. Proceed by selecting Customize installation. When you choose the Add Path check box, the Python path will be automatically configured.
-
Once the Python Installer has been downloaded, run it.
-
Select the checkboxes for "Install launcher for all users" and "Add Python 3.9 to PATH."
-
Choose Install Now, which is one of the suggested installation alternatives.
Step 3: Wait for it to complete the installation process.
-
You'll be asked if you want to disable the path length limit in the following dialogue. By selecting this option, Python will be able to get around the 260-character MAX PATH restriction. It will effectively allow Python to utilizing large path names.
-
Any other system settings will be unaffected by the Disable path length limit option. By enabling it, any name length issues with Python applications created on Linux will be resolved.
Step 4: Verification of installation of Python in Windows.
To see if Python has been installed successfully on our machine,
-
Open Cmd prompt in your system
-
Run “ Python -V”
Step 5: Run Python.
Congratulations! Python has been installed in your system.
-
Now go to Windows Search.
-
Type IDLE.
-
Open it.
-
Run your First Python code.
Step 6: Verify whether PIP was installed.
-
The PIP doesn't come pre-installed with Python's older versions. PIP is a robust software package management system for Python. As a result, double-check that it's installed.
-
For most Python packages, we suggest PIP, especially when working in virtual environments.
PIP installation on Windows from Command Prompt (cmd)
Write this command in CMD and hit Enter:
pip --version
If it is installed, the output will show the version number of the PIP. In case it is not installed, the output will be:
'pip' is not a valid internal or external command, programme, or batch file.
How to Install Python Using Anaconda Navigator?
Anaconda Navigator is the Anaconda Individual Edition's desktop GUI interface. It simplifies the process of launching programs and managing packages and environments without the need for command-line tools (CLI).
Step 1: Go to the official Anaconda website.
Step 2: From the menu bar, click on Products > Individual Edition.
Step 3: Click on the Download button on the page.
Step 4: To get additional installers, select your OS and download the package.
Step 5: Open it after downloading the installer.
Step 6: Initiate the installation process on your system.
Step 7: Congratulations! Anaconda has been successfully installed on your system.