-
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
pip install on Python 2 fails with SyntaxError: sys.stderr.write(f"ERROR: {exc}") #9500
Comments
Got the same issue |
Yh but pip install pip==20.3.3 does not give this problem. I guess the problem is with the new release v21.0, which is on (2021-01-23). |
Same here with python 3.5.2. Even pip3 --version gives the error
|
It is annoying that the new str format For users who are using I am not sure whether the latter version supports Confirmed, currently
|
Users of aws-quickstart: please see #9501. pip 21.0 dropped support for Python 2.7 and Python 3.5. We also dropped support for the same in |
On our CI images, the `python` executable is Python 2.7. pip 21.0 dropped support for Python 2.7 (pypa/pip#9500) and says to use a different URL to still retain that support. In order to install AWS CLI from pip, we need to have a compatible version of pip.
Same here on Ubuntu 16.04 with pyenv:
|
I noticed the same issue with python 3.5. It works fine when upgrading the system pip, but if I try it in a virtual environment it tries to install pip 21.0 (whih requires python >= 3.6).
If I specify a specific version it works but I get a message about a newer pip being available:
|
a python version check and a friendly error message is much preferred to
Just an FYI, it took us a few minutes longer to debug than a helpful error message |
I used the suggested pip version for 2.7 but it still didn't work. So what should I do? Install a newer version of Python or try another pip? I'm very much a noob here so please go easy on me if I'm missing something painfully obvious here. Traceback (most recent call last): |
marko, they've removed support for python 2.7. Pin to a previous version. Or upgrade to python 3.6 On the get-pip side of the world, this is the best link i've ran into: https://utcc.utoronto.ca/~cks/space/blog/python/Python2TimeToGetPipAndMore You "should" have a version of pip already, so instead of get-pip do edit: from a recently opened pr (pypa/get-pip#87) |
This comment has been minimized.
This comment has been minimized.
To everyone hitting this: Please use https://bootstrap.pypa.io/2.7/get-pip.py. |
Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in
load_entry_point('pip==21.0', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 339, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2470, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources.py", line 2184, in load
['name'])
File "/usr/local/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
The text was updated successfully, but these errors were encountered: