I am looking to set up Python's virtualenv. I am doing this since I need to run some python files written with:
a. Python 2.7 and also need to run some files that were written for python 3.4
b. two different versions of:
- NumPy - NumPy 1.9.3 and NumPy 1.10.0
- Matplotlib - Matplotlib 1.5.0 and Matplotlib 1.41
I need to run all these files on the same Windows system (Windows 7 64-bit).
Currently:
I currently have Python 2.7 installed with NumPy 1.9.3 and Matplotlib 1.5.0. I have set up and used virtualenv using the following procedure:
cd C:\Users\WrAU\Downloads
virtualenv venv_test
cd venv_test
venv_test\Scripts\activate
pip install Django==1.0
deactivate
I have added C:\Python27 and C:\Python27\Scripts to my path. I have not yet installed Python 3.4.
My problem:
I need:
- 2 different versions of Python 
- 2 versions of NumPy and Matplotlib 
Questions:
Do I need to create a separate virtualenv for Python 3.4 using the same procedure as I did for Python 2.7 above? Or is there a different method that is required for that?
How do I install separate versions of Python packages to a virtualenv?
--system-site-packageswhen creating your virtualenv.