Install Python 3 on Windows | Python3 installation on Windows & Ubuntu


Introduction 

  • Python is a most popular high level programming language. It was created by Guido van Rossum, and first released in 1991.
  • It is used for web development (server-side), software development, mathematics,system scripting, Al,machine learning and many more...
  • Unlike most Linux distributions, Windows does not come with the Python programming language by default. However, you can install Python on your Windows server or local machine in just a few easy steps.


Python3 installation on windows


Step 1: Download the latest version of python executable installer  
 
1.Open your web browser and paste the link https://www.python.org/downloads/      



 2. Click download and save to the latest version of python file.


 

Step 2: Run Python Executable installer

1. Run python installer which is already downloaded in step 1.
2. Make sure you select the Install launcher for all users and Add Python3 to PATH checkboxes (for authomatic set environment path)        


3. Select install now (this option is recommended add to install the default package, which  includes IDLE,PIP and Documentation)    
4. keep pressing the next button until the installation is successful.

5. close

 

  Step 3: Verify, installation is successful of not?

    1.press (window + R), type cmd and press Enter
    2.Now type python into the opened cmd and press Enter.
    3.The output should be similar to what you can see below:

 


  Step 4: verify, pip installed or not?

    1. press (window + R), type cmd and press Enter
    2. Now type :  pip -V
    3. The output should be similar to what you can see below:

 
  •   If pip is not installed properly, it will show this output "pip is not recognized as an internal or external command,Operable program or batch file". 
  • You can install custom PIP using this command python get-pip.py

    

Python3 installation on ubuntu


  Step 1: Open terminal

  Step 2: install python package

                                                                                                   
     1.type: $sudo apt install python3                         

                                         

                                                                         
  Step 3: install pip 

 
    1.type: $sudo apt install python3-pip                   


  Step 4: verify, python3 installed or not?

 
  
 1.type: $python3                                                     

    2.The output should be similar to what you can see below:


 Step 4: verify, python3 installed or not?

 
    
1.type : $pip3                                                            
    2.The output should be similar to what you can see below:


Custom Environment Path on Windows  

 Some times after python installation it may not be working or not connect with cmd, in this situation we use custom environment setup to set custom path on windows.

Step 1: Copy the path 

 I. Path of python.exe file

    Example :  

    1. C:\Users\mr.chetanverma\AppData\Local\Programs\Python\Python37

 

II. Path of  Scripts files

    Example:

    C:\Users\mr.chetan\AppData\Local\Programs\Python\Python37\Scripts

 


 



Post a Comment

0 Comments