TAGS :Viewed: 7 - Published at: a few seconds ago
[ creating python virtual environment on windows 7 ]
I wanted to create a python virtual environment in Windows 7. I have installed activepython 2.7 32 bit version and installed virtualev using pip command. After that I created a folder named "virtualenv", on drive C. For that folder I have executed the following command.
virtualenv <virtualenv-name>
While executing this command it opens a python file named virtualenv.py
. While closing the file, it does not prompt to be saved.
While checking on C:\virtualenv\
I was not getting the virtual environment that I tried to create.
Answer 1
From command line execute:
virtualenv MY_ENV
It will create a virtual env in MY_ENV
folder. Than activate it:
MY_ENV\Scripts\activate
Also check the virtualenv user guide.