Solve the python3.6 upgrade pip 21.1 version error

Project scenario:

System: Mav OS
python version: python3.6
PIP version: 20.1


Problem Description:

Pip prompts to upgrade to version 21.1:
directly does not consider execution: python -m pip install --upgrade pip
and then habitual pip list

Gao Neng is here... a big Fuck

After finishing the operation, an error is reported when running, and then a series of operations such as pip list, pip --versio, etc. report an error
There is no way to Baidu, who told us to program for Baidu?

Cause analysis and solution:

Report an error according to the prompt, what is missing NoReturn, we don’t know what it is, continue to follow up the source code class to find problems

source code

insert image description here
From the source code, we can see that there is this module, and the reference is normal. Try to delete it with inertial thinking, and still report an
insert image description here
error. This time, it should be referenced somewhere. If you don’t want to, continue to follow up
insert image description here
. Sure enough, continue to delete it (don’t forget to save it )
After deleting, continue to execute the pip list
insert image description here
, but I don’t know what impact it will have on the future, so let’s ignore it for now, as long as it can be used! ! !

Guess you like

Origin blog.csdn.net/qq_34004131/article/details/116263403