I am very new to Python and recently installed Python 2.7.6 x86 on Windows. I am trying to create an environment via virtualenv. I installed Python, then installed pip and virtualenv globally. I then CD'd to the directory I wanted to create an environment in and ran virtualenv env
. Then I activated it with env\scripts\activate
. Now, when I try to run any of the scripts through virtualenv (pip, easy_install, etc.) I get the following error:
Fatal error in launcher: Unable to create process using
'""[dir]\env\Scripts\python.exe"" "[dir]\env\Scripts\pip.exe" --version'
Note the extra quotes around the python exe. It has two sets of quotation marks, not just one set.
I have a feeling that this is a path error. The path is getting set in activate.bat, but looks correct there - set "VIRTUAL_ENV=[dir]\env"
Let me reiterate that scripts work fine globally. I am only seeing this error in virtualenv.
Where is that extra set of quotation marks coming from? How can I get rid of it?
Same error for me here. Until I tried the following (being inside of my venv) and it worked:
(venv) > python -m pip
or
(venv) > python -m easy_install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With