#Python 2
- Install Python 2.7
- To use
pygame
(mentioned below), install the 32-bit (x86, not x86-64) version of Python! - Location
C:\Python27
- Add
C:\Python27\python.exe
andC:\Python27\Scripts
toPATH
- In the Start menu, rename the "IDLE" shortcut to "IDLE Python 2.7"
- Install
pip
for package management (http://pip.readthedocs.org/en/latest/installing.html)
- Download
get-pip.py
and runpython get-pip.py
, wherepython
is the command to run the Python 2.7 interpreter. - If this works,
C:\Python27\Scripts
will containpip.exe
- Install
virtualenv
for environment management (http://virtualenv.readthedocs.org/en/latest/virtualenv.html#installation)
pip install virtualenv
wherepip
refers toC:\Python27\Scripts\pip.exe
- Install virtualenvwrapper for Powershell: makes virtualenv usage more convenient (https://pypi.python.org/pypi/virtualenvwrapper-powershell/2.7.1)
pip install virtualenvwrapper-powershell
- Add
Import-Module virtualenvwrapper
to PowerShell profile for all users - See sample PowerShell profile below
- Install other useful packages for education:
pip install ipython
- Install pygame (download msi file from http://pygame.org/download.shtml)
#Python 3
- Install Python 3.2
- To use
pygame
(mentioned below), install the 32-bit (x86, not x86-64) version of Python! - Location C:\Python32
- Add
C:\Python32\python.exe
andC:\Python32\Scripts
toPATH
- In the Start menu, rename the "IDLE" shortcut to "IDLE Python 3.2"
- Install pip for package management (http://pip.readthedocs.org/en/latest/installing.html)
- Download
get-pip.py
and runpython get-pip.py
, wherepython
is the command to run the Python 3.2 interpreter. - If this works,
C:\Python34\Scripts
will containpip.exe
- Install other useful packages for education:
pip install ipython
- Install pygame (Download msi file from http://pygame.org/download.shtml)
Sample Profile
Set-Alias python2 "C:\Python27\python.exe"
Set-Alias python3 "C:\Python32\python.exe"
Set-Alias pip3 "C:\Python32\Scripts\pip.exe"
Import-Module virtualenvwrapper
I have tried power shell for python27 but its not installing. Is it because my Windows7 has indentified as not a genuine. Do I need to install operating system again.