-
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
Manually specifying version 18.0 gives an error #5857
Comments
Ah! pip victim of its own internal API changes... --- get-pip.py.orig 2018-10-05 13:30:50.000000000 +0200
+++ get-pip.py 2018-10-05 17:36:01.236818917 +0200
@@ -81,7 +81,7 @@
# Import pip so we can use it to install pip and maybe setuptools too
import pip._internal
from pip._internal.commands.install import InstallCommand
- from pip._internal.req import InstallRequirement
+ from pip._internal.req.constructors import install_req_from_line
# Wrapper to provide default certificate with the lowest priority
class CertInstallCommand(InstallCommand):
@@ -134,7 +134,7 @@
# install of them.
for arg in args:
try:
- req = InstallRequirement.from_line(arg)
+ req = install_req_from_line(arg)
except Exception:
continue
|
Temp workaround:
based off the patch above. |
You could also use a constraint: |
If you've verified this fix works, would you mind submitting it as a PR? |
@voidlily see pypa/get-pip#38 👍 |
Wheee. Closing since the get-pip PR is merged. |
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. |
Environment
Description
the command "python get-pip.py pip==18.0"
gives a result of "Double requirement given: pip (already in pip==18.0, name='pip')"
Expected behavior
This worked fine a day ago, so I suspect a regression with the latest release.
How to Reproduce
sh> PIPVERSION=18.0
sh> curl -o /tmp/get-pip.py -sSL "https://bootstrap.pypa.io/get-pip.py"
sh> python /tmp/get-pip.py pip==${PIPVERSION}
sh> python --version
Output
The text was updated successfully, but these errors were encountered: