A
A
Andrew2021-01-23 21:42:07
pip
Andrew, 2021-01-23 21:42:07

How to fix "ERROR: {exc}" after pip3 update?

After updating pip, an error crashes and it cannot be launched even to view the version.
Already manually deleted and updated.
What was done:
1) removed pip, pip3, pip3.5 /usr/local/bin/
2) removed pip folder, pip-21dest.info /usr/local/lib/python3.5/dist-packages
3) removed python3 -pip ( sudo apt remove python3-pip)
Installed again, same errors.
sudo apt install python3-pip
Updated like this:
1) sudo -H pip3 install --upgrade pip
2) python3 -m pip install --upgrade pip
600c6de257b88429776900.png
Also deleted from /home/webik/.local/...; even if the installation in /usr/bin still fails...
Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Sokolenko, 2021-02-24
@rombl86

I had a similar problem due to confusion with python versions.
When working through venv, the env/bin/pip script was installed in the virtual environment, in which #!/env/bin/python3.6 was written, while venv installed only env/lib/python3.5, because there was a version problem python (needed 3.6, but defaulted to 3.5).
Helped:
- install the version of python3 I need from ppa (3.6.13 for example)
- switch the version of python3 using update-alternatives to 3.6
- install python3.6-venv, now venv will install python3.6 in any environment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question