Error after updating PIP version - Python

Asked

Viewed 95 times

-1

i went to update the version of Pip on my machine and now when I go to install a library the following error appears:

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Requirement already satisfied: pip in c:\users\admin\appdata\roaming\python\python38\site-packages (20.1)
Could not build wheels for pip, since package 'wheel' is not installed.

I already tried to go back to the previous version but did not succeed, someone could help me?

1 answer

1

Ubuntu, like other debian derivatives, has a program called update-alternatives.

With it you can configure the calling shortcuts of programs with multiple versions, with only one command, and change the version of executables that has multiple versions.

I will not copy all the content explaining how to use update-alternatives, but the site https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux has a good example of how to configure, including exemplifying the python case, so that you can use the python/Pip command on your terminal and call the right version of python/Pip.

Works to configure the PIP too!

If update-alternatives is not available on the terminal, you can install with apt-get install update-alternatives

Browser other questions tagged

You are not signed in. Login or sign up in order to post.