7.how To Install Python and Download Python
7.how To Install Python and Download Python
Home /
Tutorial /
How to Download and Install Python?
In this module, You will learn how to download and install python on Windows, MacOS X, and Linux. You will also learn how to
install Anaconda and Jupyter Notebook. After the step-by-step installation guide, You will see how to execute a basic Python
program using different modes of execution.
Python Tutorial
Python Frameworks
Python Syntax
Comments in Python
Python Variables -
Constant, Global & Static
Variables
Numbers in Python
String in Python
Python Lists
Tuple in Python
Python Sets
Python Dictionary
Python Operators
×
Python Installation in Windo…
Windo…
Type conversion in
Python
Python If Else
Statements
Python Functions -
Define & Call a Functions
in Python
Lambda Function in
Python
Python Built in
Functions with Examples
Python Arrays
Python Modules
Python Dates
Even there are so many Youbsit es that allow us to access a Python interpreter online without any installation on
your system.
Go for the most professional Python Course Online in Toronto for a stellar career now!
Now, You will see the step-by-step installation and set-up of a working Python 3 distribution on Windows, MacOS, and
Linux.
Following is the list of all topics covered in this Python installation guide. You can click on the topics to jump to a
specific one.
To install Python, firstly You need to go to the Download Python page from its official site python.org/download and
click on the latest version
Once the Python distribution download is completed, then double-click on the executable downloaded software, and
then click on Run
Now, once the installation set up starts, You need to follow the below-mentioned installation steps:
Step 1: A pop-up window, Python Version 3.7.0 (32-bit) Setup, will appear. Here, You need to ensure that You have checked
the checkboxes for ‘Install launcher for all users (recommended)’ and for ‘Add Python 3.7 to PATH’ at the bottom
Step 2: Now, a User Account Control pop-up window will appear, posing the question, ‘Do you want to allow the following
program to make changes to this computer?’ Click on Yes
×
Python Installation in Windo…
Windo…
Step 3: Now, a new Python 3.7.0 (32-bit) Setup pop-up window will appear with a ‘Setup Progress’ message and a progress
bar. During the installation, it will show us various components it is installing, and it will move the progress bar toward
completion. Soon, a new Python 3.7.0 (32-bit) Setup pop-up window will appear with a ‘Setup was successful’ message
Step 4: Once the installation is done, click on the Close button. And now, Python is successfully installed
C:\Users\AppData\Local\Programs\Python\Python37-32
or to whatever directory Python was installed (see Step 3 of the installation process)
Double-click on the icon/file python.exe
C:\Users\AppData\Local\Programs\Python\Python37-32\python.exe
and inside the window, on the first line, You will get a text ‘Python 3.7.0…’. From here, You can notice that it also says ‘32 bit’.
Inside the window, at the bottom left, the prompt, ‘>>>’: type exit() to this prompt and press Enter to terminate Python.
Now, You should keep the file python-3.7.0.exe somewhere on our computer in case You need to reinstall Python.
To write a Python script file, You can use any text editing software. For that, You just have to save it with the .py extension.
But, using a Python IDE can make developers’ life a lot easier. IDE is a software that provides useful features like hinting
code, highlighting and checking syntax, file explorers, etc. to programmers for application development.
Become a Professional Python Programmer with this complete Python Training in Singapore!
Some of the popular free Python IDEs are PyCharm, Spyder, Rodeo, and Jupyter Notebook. Jupyter Notebook is one of the
best among them.
Jupyter Notebook is a You application based on a server-client structure that allows us to create and manipulate notebook
documents—or just ‘notebooks.’
It provides us with an easy-to-use, interactive Data Science environment across many programming languages that doesn’t
only work as an IDE but also as a presentation or educational tool. This tool is perfect for those who are just starting out
with Data Science!
×
Installing Anaconda
Python Installation Windo… Python and Jupyter Notebook
in Windo…
Step 3: Next the Anaconda setup window will appear; here, select All users and click on Next
Step 4: An advanced installation window will appear; here, select Add Anaconda to my PATH environment variable and click
on Install
×
Go for this in-depth job-oriented Python Training in Hyderabad now!
To launch Jupyter Notebook via the command line, simply open our Anaconda Windows Command Prompt. Here, type
and run Jupiter Notebook
A Jupyter Notebook dashboard will open on our default Youb browser
A new python kernel will get opened, and You are ready to write a new program
Step 1: First, You have to navigate to the Python download site with our browser. Here, You will see different operating
systems to choose from; select Linux/UNIX
Step 2: Now, You will be navigated to Python Source Releases. Here, click on the appropriate link for our version of Linux:
Download
Step 3: ASalary
pop upTrends
will appear asking whether You want to open or save the file; choose Save. Python source files will begin
Email Address +91 IN Phone Number Submit
Learn how professionals
downloading. Belike you gotsource
patient: upto 100%
fileshike!
require a minute or two to download
Step 4: Now, double-click on the downloaded file. The Archive Manager window opens. After the files are extracted, You will
see the Python 3.3.4 folder in the Archive Manager window. Again, double-click on the Python 3.3.4 folder. Here, the Archive
Manager extracts the files to the Python 3.3.4 subfolder of our home folder
Step 5: Now, open a copy of Terminal. Here, if You have never built any software on our system before, then You must
install build-essentials, like SQLite and bzip2, otherwise our Python installation will fail. And, if You have already installed
them, You can skip the below steps and move to Step 9 to begin working with Python immediately
Step 6: Now, type sudo apt-get install build-essential and press Enter. Here, Linux installs the Build Essential support
required to build packages
×
Step 7: Now, type sudo apt-get install libsqlite3-dev and press Enter. Here, Linux installs the SQLite support required by
Python Installation in Windo…
Windo…
Python for database manipulation
Step 8: Now, type sudo apt-get install libbz2-dev and press Enter. Here, Linux installs the bzip2 support required by Python
for archive manipulation
Step 9: Type CD Python 3.3.4 in the Terminal window and press Enter. Here, the terminal changes directories to the Python
3.3.4 folder on our system.
Step 10: Type ./configure and press Enter. Here, the script begins by checking the system build type and then performs a
series of tasks based on the system You’re using. This process can require few minutes because there is a large list of items
to check.
Step 11: then type make and press Enter. Here, Linux executes the make script to create the Python application software.
The make process can require up to 1 minute—it depends on the processing speed of our system.
Step 12: Now, type sudo make altinstall and press Enter. Here, the system may ask us for our administrator password.
Type the password and press Enter. At this point, a number of tasks take place as the system installs Python on our
system.
Now, our Python is up and running. You can execute our first program!
You can type the following command in Ubuntu terminal to check if the latest version of Python is already installed in
your Ubuntu system or not:
python3 -v
or
python3 --version
To check if you have several versions installed on your Ubuntu, type the following command in your Ubuntu terminal:
To access Python 2 in Ubuntu, just type the following command in the Ubuntu terminal:
python
python3
If by any chance, your Ubuntu system does not have Python installed, or you are using older version of Ubuntu, then
you can use the command mentioned below to install it.
This command will install the latest version of Python in your Ubuntu system. You can check the version using the
command mentioned above.
In case you have Python already installed but it’s not the latest version, then you can upgrade you Python package
using the command mentioned below.
To install Python on MacOS X, first, You have to install Xcode, then You have to install Homebrew, and then Python.
Install Xcode
You require Xcode to install Homebrew and Python. You can download Xcode from the App Store.
Installing Xcode from the App Store is a time-consuming process. After the lengthy download and install processes, You
have to open a terminal and type the following command to install Xcode Command Line tools, and in the next step You
will install Homebrew.
Homebrew is a package manager for OSX. You can use it to install specific versions of Python that coexist with, and prevent
the pollution of, the system Python.
From here, follow the directions to install Homebrew. Once done, paste this line into a terminal:
Now our Homebrew is installed, which is used to install Python. The OSX system will still use the built-in system Python, but
anything You do will use the newly installed Python
Now, our Python is up and running on MacOS. You are ready to execute our first program!
Interactive Mode
Script Mode
Using IDE
Interactive Mode
You can enter python in the command prompt and start working with Python.
Script Mode
×
You can write Python programs in a separate file using any editor of OS via this mode
Python Installation in Windo…
Windo…
For example, type print ‘hello world’ in notepad and save it with .py extension. In this example, the file name is hello.py.
Click on Start > All Programs > Python > IDLE (Python GUI)
Interactive Mode
Script Mode
This brings us to the end of this module in the Python tutorial. You will be starting with Python syntax and will learn
everything that You need to know about this programming language to start writing programs in Python. Let’s meet there!
Further, check our Python certification course and prepare to excel in your career with our free Python interview
questions listed by experts.
Previous Next
Course Schedule
Name Date
2022-05-07 2022-05-08
2022-05-14 2022-05-15
2022-05-21 2022-05-22
I appreciate the effort you put into obtaining us this info. DECEMBER 25, 2019 AT 7:36 AM
Reply
CHERNOW says:
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
×
Python Installation in Windo…
Windo…
Name * Email *