python虚拟环境中pip需要更新

pip install --upgrade pip

在卸载完旧版后,新的没装上,然后就崩了

Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
 'pip' is a package and cannot be directly executed

解决办法

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 
python get-pip.py --force-reinstall

标签: Python

添加新评论