行走的蓑衣客

导航

 

pip出错,“No module named ‘pip’”

解决办法:

在pycharm终端(Terminal)中

  首先执行 :python -m ensurepip 

  然后执行 :python -m pip install --upgrade pip

pip升级或卸载某模块时(如 pip3 install --ignore-installed --upgrade scipy)如果出现下列报错:

Cannot uninstall 'xxx'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

可通过添加' --ignore-installed'解决

pip3 install --ignore-installed --upgrade scipy

 

posted on 2021-08-20 13:54  行走的蓑衣客  阅读(69)  评论(0编辑  收藏  举报