一,查看pip的版本:
–version与-V均可
–version
liuhongdi@192 ~ % pip --version
pip 23.2.1 from /Library/Frameworks/Python.framework/Versions/3.12/
lib/python3.12/site-packages/pip (python 3.12)
-V
liuhongdi@192 ~ % pip3 -V
pip 23.2.1 from /Library/Frameworks/Python.framework/Versions/3.12/
lib/python3.12/site-packages/pip (python 3.12)
二,升级pip
升级前查看版本:
liuhongdi@192 ~ % pip3 -V
pip 23.2.1 from /Library/Frameworks/Python.framework/Versions/3.12/
l