question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip3 10.0.0 installs a pip binary causing conflicts with python2

See original GitHub issue
  • Pip version: 10.0.0
  • Python version: 3.6.5
  • Operating system: macOS 10.13.4 (17E199)

Description:

When you upgrade pip3 from 9.0.3 to 10.0.0 pip3 installs an additional pip binary. This causes a conflict with coexistence of Python 2.7.x installations; contrary to the Python project’s intentions. From the Python project’s README file:

Python 3 and Python 2 Co-existence

Python.org Python 3.6 and 2.7.x versions can both be installed on your system and will not conflict. Command names for Python 3 contain a 3 in them, python3 (or python3.6), idle3 (or idle3.6), pip3 (or pip3.6), etc. Python 2.7 command names contain a 2 or no digit: python2 (or python2.7 or python), idle2 (or idle2.7 or idle), etc.

The release notes for Python2.7.14 have a similarly worded note on Python 3 and Python 2 co-existence.

For additional reference see: https://bugs.python.org/issue33290

What I’ve run:

gilw-mbp:bin gilw$ ls -al pip*
-rwxrwxr-x  1 root  admin  253 Apr 17 09:21 pip3
-rwxrwxr-x  1 root  admin  253 Apr 17 09:21 pip3.6

gilw-mbp:bin gilw$ pip3 install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/62/a1/0d452b6901b0157a0134fd27ba89bf95a857fbda64ba52e1ca2cf61d8412/pip-10.0.0-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 1.0MB/s
Installing collected packages: pip
  Found existing installation: pip 9.0.3
    Uninstalling pip-9.0.3:
      Successfully uninstalled pip-9.0.3
Successfully installed pip-10.0.0
gilw-mbp:bin gilw$ ls -al pip*
-rwxr-xr-x  1 gilw  admin  263 Apr 17 09:23 pip
-rwxr-xr-x  1 gilw  admin  263 Apr 17 09:23 pip3
-rwxr-xr-x  1 gilw  admin  263 Apr 17 09:23 pip3.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dstufftcommented, May 10, 2018

I’m hesitant to add even more special casing for pip here, especially one that I think is just going to shift some of the confusion around and make some cases better and some worse. This is realistically a special case of the issues described in https://github.com/pypa/pip/issues/3164, so I’m going to close this in favor of further discussion over there.

0reactions
lock[bot]commented, Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - pip version conflicts , how to know the right pip version
I have very strange behavior about pip version. when we run pip --version , we get: [root@dev_linux01 python_files]# pip --version pip 8.1.2 ...
Read more >
User Guide - pip documentation v22.3.1
pip install --user follows four rules: When globally installed packages are on the python path, and they conflict with the installation requirements, they...
Read more >
Installation — CuPy 11.4.0 documentation
Installing CuPy from PyPI#. Wheels (precompiled binary packages) are available for Linux and Windows. Package names are different depending on your CUDA Toolkit ......
Read more >
How to install and use Pip3 - ActiveState
Pip3 installs packages from PyPI (Python Package Index), but won't resolve dependencies or help you solve dependency conflicts.
Read more >
The Nine Circles of Python Dependency Hell - Medium
This may be a “non-problem” in that the projects are probably actually compatible. If you're using pip-conflict-checker, you could just turn it off...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found