Cover all steps required to install Python into your Mac or Windows or Linux machine. At the end of this blog you will be ready to start and explore the Python programming world.
In this blog I cover all steps required to install Python into your Mac or Windows or Linux machine. At the end of this blog you will be ready to start and explore the Python programming world.
1.Python on Mac
Since macOS version 10.8 it comes with Python 2.7 pre-installed by Apple. Which you can upgrade or install by following below simple steps below.
i. Check which Python version pre-installed into your mac.
cmd+space_baron keyboard & search for
terminal.appto open terminal.
python --versionto check current version of python.
python3 --versionto check python3 available in the system,
ii. To install Python version 3 into mac.
Congratuation! Python 3.10.5 for macOS or later was successfully installed.
iii. Check Python3 Installation successful or not.
2. Python on Windows Machine
Windows Machine not come with pre-installed Python. To install Python on Windows machine follow below steps.
i. Install Python3
Setup was successful— now close this window.
ii. Check installation successful or not.
You can check python installation by 2 option
Python IDE& press enter.
python --versionit will display an output with Python and its installed version number.
cmd& press enter.
pythonthis will open same shell as Python IDLE. If it throws means Python not present in your system path.
Edit the system environment variables
;semicolon at end of path.
pythonif path added correctly it will open Python IDLE type shell.
python --versionthis will display installed Python version.
3. Install Python on Linux or Ubuntu
Mostly Python not pre-installed into Linux or Ubuntu. To install Python follow below steps.
i. Install Python3
super_key or windows key& search
terminal& press enter.
sudo apt install python3
sudo apt install python3-pip build essential python3-dev
ii. Check Python installation successful or not.
python3 -Vto check current version of python.
In this blog, I tried to cover all steps required to install Python into your Mac or Windows or Linux Machine.
I hope you like this blog, feel free to join me on LinkedIn. I love to know your thoughts on this article and feedback.
Thank you for reading.