D
D
Drno2021-12-12 17:53:39
ubuntu
Drno, 2021-12-12 17:53:39

Can you help me install Pip?

Ubuntu 16.04 (i386) x32...
When installing pip, this is the error. The installation is done with the Ansible script (third-party software is installed, it requires pip to work)

spoiler
TASK [init : Update pip components] ******************************************* *
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip2", "ins tall", "-U", "pip"], "msg": "stdout: Collecting pip\n Downloading https://file s.pythonhosted.org/packages/da/f6/c83229dcc3635cde... 7a41093fab58011/pip-21.3.1.tar.gz (1.7MB)\n Complete output from command pyt hon setup.py egg_info:\n Traceback (most recent call last):\n File \"\", line 1, in \n File \"/tmp/pip-build-w_l1aG/pip/setup.py\ ", line 7\n def read(rel_path: str) -> str:\n ^\ n SyntaxError: invalid syntax\n \n ----------------------------------- -----\n\n:stderr: Command \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-build-w_l1aG/pip/\nYou are using pip version 8.1.1, however versio n 21.3.1 is available.\nYou should consider upgrading via the 'pip install --up grade pip' command.\n"}


pip install --upgrade pip command

spoiler
pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/da/f6/c832...
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-k1Cn2i/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-k1Cn2i/pip/
You are using pip version 8.1.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


Help, good people)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valdemar Smorman, 2021-12-12
@Drno

pip documentation v21.3.1 Installation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question