step1. 使用pip语句的时候出现错误 ModuleNotFoundError: No module named ‘pip._internal’
例如使用
pip list
时出现:
step2. 使用
python -m ensurepip
python -m pip install --upgrade pip
更新pip无效,给出错误以及提示
step3. 使用
easy_install -U pip
更新成功
例如使用
pip list
时出现:
python -m ensurepip
python -m pip install --upgrade pip
更新pip无效,给出错误以及提示
easy_install -U pip
更新成功
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
和 python get-pip.py --force-reinstall