In this tutorial, we will learn about how to install python into our system which may contain different operating systems used as per the specific user. We have covered the full steps and commands used during the installation part which we can see under the below process:
- Installing Python on MAC
- Installing Python on Windows
- Installing Python on Fedora
- Installing Python on Linux
- Installing Python using IDLE
Installing Python on MAC
In MAC operating system python is pre-installed into the system but it is working on the older version that is 2.7 If we want to use python2 then we don’t need to do any changes but if we want to work on python3 we have to upgrade the version that we have to manually install the new version of python into our system.
Commands to Install Python in MAC
First, we have to install the Pyenv it helps to switch between the versions of the python.
Brew install pyenv
Now after running this command we have to install the required version of python into our system. As for myself, I’m required with python version 3.7.6 into my system I’m installing that by using the following command.
pyenv install 3.7.6
If we want to install the latest version of python we only have to update the version by using the following command.
pyenv install 3.9.2
Installing Python on Windows
Installing python on windows is very easy to install we have to follow some basic steps for installing python into our windows operating systems.
- Go to www.python.org site
- Click on the download button and select all releases.
- Click on the specific release that we are required for our system.
As we have installed the latest version of python into our system that is 3.10.0(64-Bit) here we follow the following steps while installing this in our system.
Installing Python on Fedora
Fedora is an open-source operating system that is similar to Linux operating system to install python in fedora. First, we have to install the development packages that are required to build the package.
$ sudo dnf groupinstall development
After this we have to download the stable version of the python from its official website www.python.org once the download is completed then we have a .tar.xz file which we later need to extract into the system and install the packages.
$ tar -xf Python-3.?.?.tar.xz
Once all the files are extracted we have to configure the python script by using the following command.
$ cd Python-3.*
./configure
Once we are done with this we have to verify our installation in our system.
python3 --version
Or
python --version
Installing Python on Linux
Linux is an open source operating system that is easily available to download through the internet is based on the Unix operating system and here we work with the commands to perform our tasks.
First, we have to install the development packages that are required to build the package.
$ sudo apt update
$ sudo apt install build-essential zlib1g-dev \
libncurses5-dev libgdbm-dev libnss3-dev \
libssl-dev libreadline-dev libffi-dev curl
After this download the stable version of the python from its official website www.python.org once the download is completed then we have a .tar.xz file which we later need to extract into the system and install the packages.
$ tar -xf Python-3.?.?.tar.xz
Once all the files are extracted we have to configure the python script by using the following command.
$ cd Python-3.*
./configure
Once we are done with this we have to verify our installation in our system.
python3 --version
Or
python --version
After performing the above all steps we can see the latest version of python installed into our system.
Installing Python IDLE
Python’s Integrated Development and Learning Environment are installed into our system when we install the version of the python as it is the same as compared to the installed version of a python.
In this python tutorial, at the end we have covered the following topics of installation of python into the different operating systems which are given below:
- Installing Python on MAC
- Installing Python on Windows
- Installing Python on Fedora
- Installing Python on Linux
- Installing Python using IDLE
Do follow:
Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is fantastic, as well as the content!
I’m often to running a blog and i really admire your content. The article has actually peaks my interest. I’m going to bookmark your site and hold checking for new information.
Simply wish to say your article is as surprising. The clearness in your post is just cool and i could assume you are an expert on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.
Some times its a pain in the ass to read what people wrote but this internet site is rattling user pleasant! .
As a Newbie, I am always searching online for articles that can aid me. Thank you
I?¦ve been exploring for a little bit for any high quality articles or weblog posts on this kind of area . Exploring in Yahoo I ultimately stumbled upon this site. Studying this information So i am happy to show that I’ve a very excellent uncanny feeling I came upon just what I needed. I so much without a doubt will make sure to don?¦t disregard this site and provides it a look regularly.
I truly appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thx again
Really excellent information can be found on weblog. “I can think of nothing less pleasurable than a life devoted to pleasure.” by John D. Rockefeller.
I like the helpful information you provide in your articles. I’ll bookmark your blog and check again here frequently. I am quite sure I will learn plenty of new stuff right here! Good luck for the next!
Somebody essentially help to make severely articles I might state. That is the first time I frequented your web page and so far? I surprised with the research you made to make this actual put up incredible. Fantastic process!