Monday, December 30, 2019

Install Python on Windows

1. Check if Python is already installed

Write from command line
python --version

Shown warning will be, 'python' is not recognized as internal or external command

2. Download Python

From browser got to https://www.python.org/downloads/ and download it.

3. Install Python

Click Install now after successfully download the exe file. When installing it make sure to select Add Python to PATH checkbox.

4. Validate if Python is installed properly

Exit from current command window and open a new one. Write from command line,
python --version

Output should show python installed version.

If python version not shown than check environment variables in PC.

Navigate to My computer -> Properties-> Advance System Settings-> Environment Variable-> search for Path in System variable and click on Edit, add both python and python/script location and Save it.

5. Validate if pip is installed properly

Write from command line
pip --version

Output should show pip installed version (it is automatically installed with python).

If pip version not shown than go to https://pip.pypa.io/en/stable/installing/ and check instructions given there. From command line
          python get-pip.py

6. Test installed python

Write from command line write
         python

Than enter
         2+2

Output should show summation result. To get out python window press Ctrl + z.

7. If required to Uninstall, Repair or Modify installed python

Navigate to previously downloaded python exe file and run it. It should provide three options to Modify, Repair and Uninstall.

No comments:

Post a Comment