How to install Python / Pip on Windows 10

How to install Python / Pip on Windows 10

  1. Download the MSI installer from http://www.python.org/download/. Select 32 bit or 64 bit based on the System Settings which opens by pressing Win+Break
  2. Run the installer. Be sure to check the option to add Python to your PATH while installing.
  3. Open PowerShell as admin by right clicking on the PowerShell icon and selecting ‘Run as Admin’
  4. To solve permission issues, run the following command:
  1. Set-ExecutionPolicy Unrestricted
  1. Enter the following commands in PowerShell to download the bootstrap scripts for easy_install and pip:
  1. mkdir c:\envs
  2. cd c:\envs
  • (new-object System.Net.WebClient).DownloadFile(‘https://bootstrap.pypa.io/ez_setup.py’,   ‘c:\envs\distribute_setup.py’)
  1. (new-object System.Net.WebClient).DownloadFile (new-object System.Net.WebClient).DownloadFile (‘https://bootstrap.pypa.io/get-pip.py’, ‘c:\envs\get-pip.py’)
  • python c:\envs\distribute_setup.py
  • python c:\envs\get-pip.py

Once these commands run successfully, you can delete the scripts get-pip.py and distribute_setup.py