Install Python for your Account in Windows

28 Mar 2014

Ever need to install Python for just your user account? Maybe you don’t have admin privileges or something to install it?

  1. First, download Python from here
  2. Extract the msi to your Profile directory
    1. Open a command window Start Button -> cmd
    2. mkdir %USERPROFILE%\python
    3. msiexec /a %USERPROFILE%\Downloads\python-2.7.6.msi /qb TARGETDIR=%USERPROFILE%\python
  3. At this point we have python sort of installed. You would have to type %USERPROFILE%\python\python.exe ever time you wanted to run python. We want to be able to just type python from anywhere and have it run
    1. Setup your PATH and PATHEX variables by clicking the windows button and typing in environment and selecting the edit environment variables for your account
    2. Then setup Path and PATHEXT like in the image belowpath
  4. You should be set to go. Open a command window and type python -V to see if it works
«« Previous Post Next Post »»