-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Do not recommend pip install --prefix=<empty> hack, this breaks default pip command #821
Conversation
It works except in virtualenvs, right? |
Nope, it doesn't work with brew installed python which contains |
Both |
Can you elaborate on "doesn't work"? |
Sorry I removed the brew python, thus can't do testing right now. I will update with details soon. |
Ok, here is how to reproduce: Add
Now run
|
Gotcha, thanks. |
@tdsmith Thoughts on 🚢ing this? |
@tdsmith ❓ |
Passing on this for now but @tdsmith feel free to apply any of this. |
Hi, any reason this and related issue both are closed without it being resolved? Keeping them open would get attentions eventually? |
@chhantyal There's been no activity or conversation on them so there's little point in leaving them open for now. @tdsmith may disagree. |
If you keep issue open, may be maintainers and other contributors would try to fix whenever they are free. When you close, it's going to be hidden and people probably won't find. Anyway, that's how I view Github issues. Obviously, everybody has different opinion. |
No need to apologise, thanks @chhantyal. |
Okay, I agree the pydistutils.cfg section doesn't work (pip got smarter!), but the command-line form still does. |
A possible workaround (which puts executable scripts in `~/Library/Python/<X>.<Y>/bin`) is: | ||
|
||
pip install --user --install-option="--prefix=" <package-name> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave the text above this comment in place?
Alright. I rebased and put back command line option |
Thanks! |
I don't understand what the resolution to the actual problem was. Looks like the recommendation is removed with no alternative. Trying suggested commandline options doesn't work Same error. Removed Homebrew python + pip for now. |
Yup, you are right. There is no alternative if you use homebrew python. |
Hi,
Please do not recommend
pip install --prefix=<empty>
This works with
--target
or--user
option, but breaks normal/default pip operations.pip install package
won't work anymore. Tested on OSX. Because of this recommendation, people are getting weird errors like here Homebrew/legacy-homebrew#44836That recommendation is also top recommendation on this answer http://stackoverflow.com/questions/24257803/distutilsoptionerror-must-supply-either-home-or-prefix-exec-prefix-not-both
But see the user comments on first answer.