You may smile when read this question, but.. I read in many places how to do this work, but I have this trouble:
I use a windows 7 system; I already installed python 3.2 and the module virtualenv; when I put the instruction:
virtualenv -p /usr/bin/python 3.2
it send an syntax error.
If I put the instruction:
/usr/bin/virtualenv-3.2
It send the same syntax error. How do I create a virtualenv? Thanks for your help
1 Answer 1
I believe the problem here is the path that you specify, which is unix based and not windows 7. Try to use the path to your python interpreter location on your windows system for the -p argument.
like for example:
mkvirtualenv -p c:/your/path/to/python2.5
May I give u some additional advice/tip:
In the past I've used virtualenvwrapper, which provides a set of function that make working with virtual environment a lot easier. I really loved it!
In order to install it, you should make sure that virtual environment is already installed, which I believe is the case for you.
Next run:
pip install virtualenvwrapper
next you can follow the simple steps here
3 Comments
pip is only included on Windows on Python 2.7.9+ and Python 3.4+.
/usr/existed on Windows 7. Actually, I'm pretty bloody sure it doesn't :P Have you considered leaving out that argument and just runningvirtualenv [name_of_virtual_environment]?