-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
pip 6 is out #35194
Comments
NB, users that want to upgrade pip don't need us to take any action and should just [ed 2014-12-24 15:02 utc-5: add --no-use-wheel] |
Upgrading pip with
Changing
|
Upgrading pip should have overwritten |
I needed to |
That's probably a symptom of having sudo pip installed something in the |
Yeah, I seem to recall having to
Should do the job, I presume? |
@tdsmith I'll take a look tomorrow at my installation (I'm not on the right computer now) to let you know if I find something interesting. I can reproduce my problem with |
Also, for the heads up. |
Thanks for pointing that out, @xu-cheng; that looks hard to avoid since python and python3 (and system python, in fact) share a script directory. I don't think there's a "--install-suffix" option or similar that we can pass to prevent that. It's probably worth a note in caveats. |
Still getting some weird errors. Fresh install of Python, and chowned everything even slightly Python related. Hit the exact same problem as Triiistan did above. What am I doing wrong? 😸. |
Ah: @Triiistan, this is an old pip bug. It should be fixed in the pip we're all trying to install. ;) Dominyk, you've actually just hit two of those in a row. The workaround for @Triiistan's issue (which I can repro on a clean VM) is Previously, previously, resolution. Dominyk, you should chown everything back and delete anything that |
My Python
Is that okay? Thanks for the |
I seem to be hitting the same thing as @Triiistan with the
problem. |
Bingo. |
Thanks a lot @tdsmith! |
I found the things get worse. The new pip3 also overwrote the scripts like |
That's not new behavior but I appreciate that it's annoying. Invoking modules like |
While, this is an old bug resurfacing. At least, it used to work fine. I have reported it to pip: pypa/pip#2274. |
Actually, ~> pip3 install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-6.0.3-py2.py3-none-any.whl#md5=1ac546485f75a8cf257a8f1a40aa51f5
Downloading pip-6.0.3-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.6
Uninstalling pip:
Successfully uninstalled pip
Successfully installed pip
Cleaning up...
~> cat (which pip)
#!/usr/local/opt/python/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.5.6','console_scripts','pip'
__requires__ = 'pip==1.5.6'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
) |
Oh, that was a use case that worked because of the pip bug that's been fixed. :/ C'est la guerre. |
The easiest thing to do to update both pips properly, I've found, is to update python2 pip last. ~> python3 -m pip install --upgrade --no-use-wheel pip
...
~> python -m pip install --upgrade --no-use-wheel pip # overwrites pip3's `pip`
... Verifying it's worked: ~> for val in (ls -1 (brew --prefix)/bin/pip*)
echo -n "$val: "; eval $val --version
end
/usr/local/bin/pip: pip 6.0.3 from /usr/local/lib/python2.7/site-packages (python 2.7)
/usr/local/bin/pip2: pip 6.0.3 from /usr/local/lib/python2.7/site-packages (python 2.7)
/usr/local/bin/pip2.7: pip 6.0.3 from /usr/local/lib/python2.7/site-packages (python 2.7)
/usr/local/bin/pip3: pip 6.0.3 from /usr/local/lib/python3.4/site-packages (python 3.4)
/usr/local/bin/pip3.4: pip 6.0.3 from /usr/local/lib/python3.4/site-packages (python 3.4) [Updated on 2014-12-31 to use |
While, in my case: $ head -1 /usr/local/bin/pip
#!/usr/local/opt/python/bin/python2.7
$ pip3 install pip --upgrade --force
Collecting pip
Using cached pip-6.0.3-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 6.0.3
Uninstalling pip-6.0.3:
Successfully uninstalled pip-6.0.3
Successfully installed pip-6.0.3
$ head -1 /usr/local/bin/pip
#!/usr/local/opt/python3/bin/python3.4 |
Python 2's pip and Python 3's are conflict. FYI, python -m pip is safer than pip command. $ python3 -m pip install -U pip setuptools # pip is pip3
$ python2 -m pip install -U pip setuptools # pip is pip2 |
Should the formula Caveats be updated to reflect |
@bcomnes I think it's a bit late. |
The bottle and the source install still come with |
All the Python formulae should now come with the new major |
pip 6 will solve a lot of problems Homebrew python users have reported, which is great! I want to wait a few days to see if any bugfix releases emerge, migrate CPython 3 away from ensurepip, and bundle the pip and setuptools sdists into the bottles for CPython3, pypy, and pypy3 like we do for CPython 2.
The text was updated successfully, but these errors were encountered: