$ pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/33/c9/e2164122d365d8f823213a53970
fa3005eb16218edcfc56ca24cb6deba2b/pip-22.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-YnoI8J/pip/setup.py", line 7
def read(rel_path: str) -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-
YnoI8J/pip/
You are using pip version 8.1.1, however version 22.0.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/33/c9/e2164122d365d8f823213a53970fa3005eb1
6218edcfc56ca24cb6deba2b/pip-22.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-nYEDbv/pip/setup.py", line 7
def read(rel_path: str) -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-
nYEDbv/pip/
You are using pip version 8.1.1, however version 22.0.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ sudo python3 -m pip install -U pip
The directory '/home/liuzhicheng/.cache/pip/http' or its parent directory is not
owned by the current user and the cache has been disabled. Please check the
permissions and owner of that directory. If executing pip with sudo, you may want
sudo's -H flag.
The directory '/home/liuzhicheng/.cache/pip' or its parent directory is not owned
by the current user and caching wheels has been disabled. check the permissions
and owner of that directory. If executing pip with sudo, you may want sudo's -H
flag.
Collecting pip
Downloading https://files.pythonhosted.org/packages/4d/16/0a14ca596f30316efd412a60bdfac02a7259
bf8673d4d917dc60b9a21812/pip-22.0.4-py3-none-any.whl (2.1MB)
100% |████████████████████████████████| 2.1MB 1.1MB/s
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment
/usr
Successfully installed pip-22.0.4
$
|