Hello,
Today, I ran easy_install -U pip on a fresh virtualenv with setuptools 47.3.0 and running the pip command no longer works.
Repro steps (trimmed)
$ virtualenv --system-site-packages ~/piptest -p python3
$ source ~/piptest/bin/activate
(piptest) $ pip list
Package Version
--------------------- -------------------
packaging 20.3
pip 20.1.1
setuptools 47.3.0
virtualenv 16.7.7
wheel 0.34.2
(piptest) $ easy_install -U pip
WARNING: The easy_install command is deprecated and will be removed in a future version.
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/fe/3b/0fc5e63eb277d5a50a95ce5c896f742ef243be27382303a4a44dd0197e29/pip-20.2b1-py2.py3-none-any.whl#sha256=b4e230e2b8ece18c5a19b818f3c20a8d4eeac8172962779fd9898d7c4ceb1636
Best match: pip 20.2b1
Processing pip-20.2b1-py2.py3-none-any.whl
Installing pip-20.2b1-py2.py3-none-any.whl to ~/piptest/lib/python3.7/site-packages
Adding pip 20.2b1 to easy-install.pth file
Installing pip script to ~/piptest/bin
Installing pip3 script to ~/piptest/bin
Installing pip3.8 script to ~/piptest/bin
Installed ~/piptest/lib/python3.7/site-packages/pip-20.2b1-py3.7.egg
(piptest) $ pip
Traceback (most recent call last):
File "~/piptest/bin/pip", line 30, in <module>
sys.exit(load_entry_point('pip==20.2b1', 'console_scripts', 'pip')())
File "~/piptest/lib/python3.7/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "~/piptest/lib/python3.7/site-packages/pkg_resources/__init__.py", line 482, in get_distribution
dist = get_provider(dist)
File "~/piptest/lib/python3.7/site-packages/pkg_resources/__init__.py", line 358, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "~/piptest/lib/python3.7/site-packages/pkg_resources/__init__.py", line 644, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (pip 20.1.1 (~/piptest/lib/python3.7/site-packages), Requirement.parse('pip==20.2b1'))
Actual: running pip results in an error
Expected: no error
Slightly longer repro steps:
https://gist.github.com/psybuzz/0c46c72e716d36ee3c492dec44680c19
From the VersionConflict error, I'm guessing that easy_install -U pip installed a newer version of pip (20.2b1) without removing the old one (20.1.1). Anything that requires 20.2.b1 then sees the old version actively distributed (20.1.1) and throws the error.
Since this happened recently, I'm wondering whether the recent changes on June 15 to easy_install (2b4b5de and 9bb1149) might have contributed to this issue.
Sorry if this isn't the right place to ask this question, but has anyone on the setuptools side seen this error?
Hello,
Today, I ran
easy_install -U pipon a fresh virtualenv with setuptools 47.3.0 and running thepipcommand no longer works.Repro steps (trimmed)
Actual: running
pipresults in an errorExpected: no error
Slightly longer repro steps:
https://gist.github.com/psybuzz/0c46c72e716d36ee3c492dec44680c19
From the VersionConflict error, I'm guessing that
easy_install -U pipinstalled a newer version of pip (20.2b1) without removing the old one (20.1.1). Anything that requires 20.2.b1 then sees the old version actively distributed (20.1.1) and throws the error.Since this happened recently, I'm wondering whether the recent changes on June 15 to easy_install (2b4b5de and 9bb1149) might have contributed to this issue.
Sorry if this isn't the right place to ask this question, but has anyone on the setuptools side seen this error?