Python is high-level programming language first launched in 1991. It is one of the most popular and flexible server-side programming languages. It Is default installed in Linux server, whereas windows do not come up with python default. But you can install python on your windows system / local system in simple steps. It is one of the best programming languages. To develop any programs, we require an IDE. Here we need to install python setup in our system.
Table of contents:
Check if python
already installed
Prerequisites to
install
Select the python
version
Download Python setup
Install Python setup
Run python
Summary
Follow the below easy steps to install python in windows system:
1. Check if python already installed:
Before starting the installation process, you can check the python already installed or not. You can ask me for How to check the python version in system...??
- You can check it in command prompt or Power Shell
- Click on start button
- Search for command prompt or Power Shell
- Select it
- Open command prompt / Power Shell with admin privileges
- Type the Python & click enter
Note: To find the installed application location you can use the where.exe python then, click enter button in command prompt
images
A system with windows operating system with admin privileges
- Command prompt
- If you’re installing in remote windows server, needs Remote desktop connection application
Note: if your python installing on a remote windows server. Login the remote server via Remote Desktop Protocol (RDP). After login follow the same procedure same as local windows machine.
Python available in different versions. It has syntax differences & works in different versions of language. We need to select & download appropriate version as per our requirement. It has python 3, python 2. Python 3 is latest version. Sub versions will release with new features and bug fixes if any.
Note: If your windows
OS is 32-bit system, you need to install 32-bit exe installer. if your windows
OS is 64-bit system, you need to install 64-bit exe installer. If your
installed wrong version, you can un-install wrong version, then install another
version.
If you are beginner, learner python code, download both versions Python 2 and 3. Python 2, will uses to work with old projects.
To download the python installer, open the browser
- Go to the official site of python – www.python.org
- Click on download tab. Select the windows version link. Here it will show multiple platforms.
- Then all available versions will be listed with system type. Click on right version & download it. We selected 3.9.9 with 64-bit selected type (Windows installer (64-bit))
- All versions will be available with different operating specifications. Choose which suits to your system, and then download the installer
Ex: My system has 64-bit. So, I will download Windows installer (64-bit) from list.
Till now, we downloaded the python installer.
5. Installing Python installer exe:
- In recent versions, python includes PIP & IDLE. In older versions it may not include additional features.
- Run python 3.9.9 windows installer which you downloaded.
- images
- Installation process started.
- Select both check boxes. Then click on Install Now.
You can see the Disabled path length limit option in setup wizard. It will not change or affect any other system settings. If you selected, it would resolve potential name length issues. Environmental path will added here, when you selected Add python 3.9.9 check box.
It will take the few minutes time complete the installation. Installation setup is in progress
Method: 1
- To verify the python version &installed successfully or not. Open the folder by using path C:\Users\Username\AppData\Local\Programs\Python\Python39
- Double-click python.exe.
- You can see the output in command prompt window as below with version.
Method: 2
- Open command prompt by clicking on start button
- Type the Python and click on enter button
- Then, python version will be displayed here which you installed.
Note: To check installation success type the command in command prompt python -V (or) python --version, then click enter button. It will show which version you installed.
If
your installed older versions, PIP did not come with preinstalled.
Follow the below steps to check weather PIP installed
- Click start button
- Open command prompt
- Type the pip -V and click on enter button
- Then, pip version will be displayed here
Note: if PIP not installed, you would get below error message
‘pip’ is not recognized as an internal or external command, operable program, or batch file.
- windows search
- search for IDLE
- click on it.
- you will be opened new window to develop python programs. Then run your first program
If Python not installed in your system with any other issues or not supported, you can use online python websites:
- Python.org online console -- https://www.python.org/shell/
- Trinket -- https://trinket.io/
- Python Anywhere -- https://www.pythonanywhere.com/
- Repl.it -- https://replit.com/
Note: These are the cloud based online editors or interpreters. These are may not execute the heavy complex programs. But this is good way to start programming.
We successfully installed python software in windows system.
Installation
on Mac:
To install python3 on Mac OS, visit the link https://www.javatpoint.com/how-to-install-python-on-mac and follow the instructions given in the tutorial.
Installation
on Cent OS
To install Python3 on Cent OS, visit the link https://www.javatpoint.com/how-to-install-python-on-centos
and follow the instructions given in the tutorial.
Installation
on Ubuntu
To install Python3 on Ubuntu, visit the link https://www.javatpoint.com/how-to-install-python-in-ubuntu and follow the instructions given in the tutorial.
Summary: This article may helps to install python.
No comments:
Post a Comment