Problems with virtualenv on Windows

877 Views Asked by At

Under C:\Python27\ArcGIS10.2\Scripts I have the following installed: -easy install -pip -virtualenv

However, whenever i go to activate my virtualenv in the following directory C:\Users\username\djangotest i type in the command line the following code: C:\Python27\python -m venv myvenv and i get a not recognized as internal or external command response. I am following the setup steps on http://tutorial.djangogirls.org/en/django_installation/index.html

Am i setting virtual env in the wrong filepath?

Thanks

1

There are 1 best solutions below

1
On

If my memory serve me right, only python3.3 support -m to create virtualenv. Version prior to that you have to use virtualenv to install virtual enviroment.

pip install virtualenv
virtualenv -p /usr/bin/python2.7 <path/to/new/virtualenv/>

Update:

C:
CD\
virtualenv -p C:\Python27\python.exe MyVirtualEnv

That should create a "MyVirtualEnv" virtualenv folder in your c: drive.