-
Notifications
You must be signed in to change notification settings - Fork 28
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
Incorrect path - missing " for windows #107
Comments
When running the command |
I've got similar error on Windows:
As a workaround I've added quoting of the path (that contains spaces in this case) in the def call(*args, **kwargs):
pip_exec = kwargs.pop("pip_exec", None) or _PIP_EXECUTABLE
# ... skipped some lines ...
# Quote the path if it contains spaces (might be replaced with escaping)
if ' ' in pip_exec and pip_exec[0] not in ["'", '"']:
pip_exec = '"' + pip_exec + '"'
# ... rest of the function ... That fixed the issue for me. @achillesrasquinha is that solution good enough for PR or should it be implemented in more elegant way? |
@Habetdin please do go ahead with that PR. |
What's the bug all about?
It doesn't run at, all because Windows is missing " around the path
What command led to this issue?
Please type the exact command that led to this issue.
Logs
Please paste the logs using
pipupgrade --verbose
The text was updated successfully, but these errors were encountered: