how to install python 2.7.15 and 3.6.5 on windows 10

python-site

Steps

  1. Download Python 2.7.15. Install it with the default settings.
  2. Download Python 3.6.5. Install it with the default settings.
  3. Change the executable file name C:Python3python.exe to C:Python3python3.exe.

Install modules

  • Python3
    python3 -m pip install pandas
    
  • Python2
    python -m pip install pandas
    

Execute program

  • Python3
    python3 test.py
    
  • Python2
    python test.py
    

Reference

How to install Python 2.7 and 3.6 to Windows 10