Closed SimonGolding closed 3 years ago
Pip has finally dropped Python 2 support. Python 2 reached its end of life on Jan 1, 2020, over a year ago. Most of the tooling for Python and hosting will drop / delete Python 2 resources.
That is, why you are seeing the traceback with ensurepip. The new version uses the format string syntax in f"ERROR: {exc}"
, which is a Python-3-only feature. For now, as you mentioned, people can use the old version of get-pip.py
to circumvent this: https://github.com/pypa/get-pip/raw/5f38681f7f5872e4032860b54e9cc11cf0374932/get-pip.py
However, this will soon cease to work as Python 2 will not be packaged for most any distribution in the future. The only lasting solution is for all the tools be ported to Python 3.
Hi this is an issue with the Readme.md and the instructions, the section in question is
_``` Prerequisites (Debian, Mint, Ubuntu): sudo apt-get update sudo apt-get install -y make gcc g++ gperf install-info gawk libexpat-dev python-dev python python-serial sed git unzip bash wget bzip2 libtool-bin Note: Some platforms do not have python-serial. If they don't have it, do this:
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py sudo python2 get-pip.py pip install pyserial