-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkvirtualenv.bat - The system cannot find the path specified. #53
Comments
It should be sufficient to use
The intention of the outer if is to figure out where the
and leave it up to the user to fix their environment variables..? Most users can probably run Looking at it (https://github.com/pypa/virtualenv/blob/master/setup.py) a bit closer, virtualenv can place its entry point in different locations depending on the presence of the Possible solutions..
I don't have a strong opinion either way (but the environment variable override might be a good idea regardless of what else is chosen). |
mkvirtualenv.bat wasn't working for me till I have modified a path in its code.
I'm Using:
Default UAC Settings.
My %PATH% (not modified manually):
My %WORKON_HOME%:
My %PYHOME%:
I have modified the else path part (lines 49 to 53) of mkvirtualenv.bat:
My
*.bat
scripts was installed in my base prefix,C:\python34
and not inC:\python34\
And this is why it wasn't working.I don't know If this is just a workaround or the way to go. But a point, de documentation says to setup
%PATH%
and%WORKON_HOME%
, but the code uses%PYHOME%
Shouldn't be the code be using one or the other but not both env vars ? :$I also think that's very ugly the
python.exe "%PYHOME%\Scripts\virtualenv.exe" %ARGS%
call. Calling an exe from another exe xd But this is my fault Heheworkon, deactivate, rmvirtualenv & lsvirtualenv commands work fine after this change.
The text was updated successfully, but these errors were encountered: