ARTIFICIAL INTELLIGENCE PROGRAMMING
Lesson 3: Step by step instruction to install Python in
Windows
Installing or updating Python on your system is the first step
to becoming a Python developer. There are many ways you
can get started with setup and installation: you can download
official Python distributions from Python.org, install from a
package manager(Anaconda), and even install specialized
distributions for scientific computing, Internet of Things, and
embedded systems.
Check if you already have Python installed
You can check in the command-line application, such as
PowerShell
Tip: Here’s how you open PowerShell:
1. Press the ⊞ Win key.
2. Type PowerShell or cmd.
3. Press Enter
Alternatively, 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.
Python | PowerShell
1. Run python without parameters
2. Install Python — Full Installer
Step 1: Select Version of Python to download Full Installer and
install
The most stable Windows downloads are available from
the Python for Windows page. On Windows, you have a
choice between 32-bit (labeled x86) and 64-bit (labeled x86–
64) versions, and several flavors of the installer for each.
Underneath the Python Releases for Windows find the Latest
Python 3 Release — Python 3.9.4
Step 2: Download Python Executable Installer and install it
Double-click the executable file, which is downloaded; the
following window will open. Select Customize installation
and proceed. Click on the Add Path check box, it will set the
Python path automatically.
1. Run the Python Installer once downloaded. (In this
example, we have downloaded Python 3.9.4)
2. Make sure you select the “Install launcher for all users”
and “Add Python 3.9 to PATH” checkboxes.
3. Select Install Now — the recommended installation
options.
Step 3: Wait for it to complete the installation process
The next dialog will prompt you to select whether to Disable
the path length limit. Choosing this option will allow Python
to bypass the 260-character MAX_PATH limit. Effectively, it
will enable Python to use long path names.
The Disable path length limit option will not affect any other
system settings. Turning it on will resolve potential name
length issues that may arise with Python projects developed
in Linux.
Step 4: Verification of installation of python in Windows
To check if Python 3.9.4 has been successfully installed in
our system,
Open Cmd prompt in your system
Run “ Python -V”
Step 5: Run python
Kudos! python has been installed in your system, Now go to
1. Windows search
2. Type IDLE
3. Open it.
Run your First Python code
Happy Coding
Step 6: Verify Pip Was Installed
If you opted to install an older version of Python, it is
possible that it did not come with Pip preinstalled. Pip is
a powerful package management system for Python
software packages. Thus, make sure that you have it
installed.
We recommend using Pip for most Python packages,
especially when working in virtual environments.
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.
3. Install Python using Anaconda navigator
Anaconda Navigator is a desktop GUI interface that comes
with Anaconda Individual Edition. It makes it easy to launch
applications and manage packages and environments
without using command-line commands(CLI).
Step 1: Visit the official site for anaconda
Download: Anaconda
Step 2: Select Open Source Distribution
Step 3: Click on the download button
Step 4: Select your OS and Download a package
Step 5: After the installer gets downloaded, open it
Step 6: Start the installation in your system
Step 7: Kudos! ANACONDA has been successfully installed in
your system.
Happy Coding
Online Python Interpreters
For some or other reason if you are not setting up Python on
your machine, then there are several websites that offer an
online Python interpreter:
Python.org Online Console
Repl.it
Trinket
Python Anywhere