-
Notifications
You must be signed in to change notification settings - Fork 3k
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
DistutilsOptionError with --target and prefix or exec-prefix #4106
Comments
See pull #4103 |
Closing to move a bunch of related issues to a single issue: #4390. |
This issue still exists.
Note, I have not specified
As a result, |
Does it work when using |
No, same error. |
From the code, it looks like |
I think, similarly to when src/pip/_internal/locations.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git i/src/pip/_internal/locations.py w/src/pip/_internal/locations.py
index 89a3656b..72fe7c6f 100644
--- i/src/pip/_internal/locations.py
+++ w/src/pip/_internal/locations.py
@@ -170,7 +170,7 @@ def distutils_scheme(dist_name, user=False, home=None, root=None,
# ideally, we'd prefer a scheme class that has no side-effects.
assert not (user and prefix), "user={} prefix={}".format(user, prefix)
i.user = user or i.user
- if user:
+ if user or home:
i.prefix = ""
i.prefix = prefix or i.prefix
i.home = home or i.home |
The |
Confirmed - that one patch does address the issue.
|
…nvironment and --target is used. Fixes pypa#4106.
Until pypa/pip#6008 is merged...
Description:
Having installed Python 2.7 using Homebrew, I'm unable to install packages using `--target'
What I've run:
Obviously, I didn't supply home nor prefix, so the error message is confusing.
The text was updated successfully, but these errors were encountered: