遇到的问题:终端安装包时,会有以下提示:pip install --upgrade pip
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.You should consider upgrading via the ‘/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -m pip install --upgrade pip’ command.
如果你要更新,但如果你使用的是 Python3,千万不要直接按照上面的提示直接输入 pip install --upgrade pip,会让你的 pip3 失效的。
正确做法: pip3 install --upgrade pip