Skip to content
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

bootstrap.pypa.io/get-pip.py gives syntax error with python 2.66 #29

Closed
sdhoka opened this issue Apr 23, 2018 · 4 comments
Closed

bootstrap.pypa.io/get-pip.py gives syntax error with python 2.66 #29

sdhoka opened this issue Apr 23, 2018 · 4 comments

Comments

@sdhoka
Copy link

sdhoka commented Apr 23, 2018

I am using a RHEL 6.7 environment. I get the following error when trying to install pip.
Command: curl https://bootstrap.pypa.io/get-pip.py | python

Traceback:
Traceback (most recent call last):
File "", line 20649, in
File "", line 197, in main
File "", line 82, in bootstrap
File "/tmp/tmpsLrKHC/pip.zip/pip/_internal/init.py", line 42, in
File "/tmp/tmpsLrKHC/pip.zip/pip/_internal/cmdoptions.py", line 16, in
File "/tmp/tmpsLrKHC/pip.zip/pip/_internal/index.py", line 526
{str(c.version) for c in all_candidates},
^
SyntaxError: invalid syntax

@webknjaz
Copy link
Member

Hi, the correct command for you would be curl https://bootstrap.pypa.io/2.6/get-pip.py | python

@hugovk
Copy link
Contributor

hugovk commented Apr 25, 2018

@sdhoka
Copy link
Author

sdhoka commented Apr 25, 2018

@webknjaz @hugovk
Thanks

@termcom
Copy link

termcom commented Jan 10, 2019

@webknjaz That did that job. It worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants