Report a Problem:
Phone: 503-725-5420
Location: FAB 82-01
Home Students Fac/Staff CS Tutors Guidelines Windows Linux Mac Mail Network Software Web TheCAT Sitemap Contact
arrowHome arrow Windows arrow Installing Python Packages under Windows Tuesday, 19 September 2017  
Installing Python Packages under Windows Print
Written by thyme   
Wednesday, 31 May 2017
To install Python packages ("eggs") from the Python language's package manager pip, follow our instructions below. This can be done without Administrator access in a per-user, per-project clean manner with virtualenv. virtualenv is the industry-standard way of developing and running Python. Virtualenv is available in our environment for current Python 2 and Python 3 packages.

This Guide applies to the following MCECS labs where python 2 and 3 are installed:
EB General lab (Eb 325), FAB General Lab (FAB 55-17), MCAE Lab (EB 420) and Civil 3D lab (EB 385).


From a command prompt:
  1. Create a directory to use for your python project in a location which you have write access ( such as N:\My Documents\myPyProject , D:\myPyProject ).
    For example:
    	mkdir myPyProject
  2. Run the command `virtualenv -p` This creates the virtual environment in your project folder.
    For example:
    	virtualenv -p "C:\Program Files\Python36\python" "D:\myPyProject"
  3. Navigate into your project directory and activate it.

  4. For example:
    	cd myPyProject
    	cd Scripts\activate
You should be returned with a prompt similar to:
The following is a complete example of the steps above:
D:\> mkdir myPyProject
D:\> virtualenv -p "C:\Program Files\Python36\python.exe" "D:\myPyProject" 
D:\> cd myPyProject
D:\> Scripts\activate
(myPyProject) D:\myPyProject> pip install numPy
Last Updated ( Friday, 02 June 2017 )

©1999 - 2017 TheCAT