stale-king-21470
01/16/2022, 5:41 PM#5 29.97 Collecting pip
#5 30.17 Downloading <https://files.pythonhosted.org/packages/da/f6/c83229dcc3635cdeb51874184241a9508ada15d8baa337a41093fab58011/pip-21.3.1.tar.gz> (1.7MB)
#5 30.79 Complete output from command python setup.py egg_info:
#5 30.79 Traceback (most recent call last):
#5 30.79 File "<string>", line 1, in <module>
#5 30.79 File "/tmp/pip-build-hQd70M/pip/setup.py", line 7
#5 30.79 def read(rel_path: str) -> str:
#5 30.79 ^
#5 30.79 SyntaxError: invalid syntax
#5 30.79
#5 30.79 ----------------------------------------
#5 30.82 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hQd70M/pip/
#5 31.38 You are using pip version 8.1.1, however version 21.3.1 is available.
#5 31.38 You should consider upgrading via the 'pip install --upgrade pip' command.
#5 ERROR: executor failed running [/bin/sh -c apt-get update && apt-get install python-dev python-pip -y && apt-get clean && pip install --upgrade pip]: exit code: 1
------
> [2/4] RUN apt-get update && apt-get install python-dev python-pip -y && apt-get clean && pip install --upgrade pip:
------
executor failed running [/bin/sh -c apt-get update && apt-get install python-dev python-pip -y && apt-get clean && pip install --upgrade pip]: exit code: 1
My code is identical to the one in the article, Docker is running, I'm on MacOS 12.1.billowy-army-68599
01/16/2022, 8:47 PMstale-king-21470
01/17/2022, 8:37 AM2.7.18
but I also have 3.10.1
installed. In the Dockerfile I have these commands so I guess it should install the latest version?
RUN apt-get update && \
apt-get install python-dev python-pip -y && \
apt-get clean && pip install --upgrade pip