How to manage two pip versions in conda?

冷暖自知 提交于 2019-12-04 02:55:55

First of all I tried to replicate your issue and when I updated pip to 10.0.1 using python -m pip install --upgrade pip, the command pip --version seems to work for me. I suppose it was a bug on version 10.0.0. Now coming to the issue that multiple pip versions are showing up in conda list of base, the <pip> one is the incorrect one and must be removed.

You can uninstall one of the pip versions

pip uninstall pip

Now finally run

conda install pip -f

And violla! Everything is back to normal. Next time, you can update pip by using

conda update pip

It is a safer method to update.

Note:-

In this scenario we have also removed the pip from your python installation as well. If you want to use pip in cmd prompt then simply use easy_install pip~=10.0.1 in cmd prompt.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!