Updating 'pip' after configuring 'pip' to point to Homebrew's pip3 causes errors

谁说我不能喝 提交于 2019-12-10 21:37:16

问题


After installing Python 3 using Homebrew and putting the Homebrew aliases (e.g. pip -> pip3) on my path

export PATH=/usr/local/opt/python/libexec/bin:$PATH

and then updating pip with

pip3 install -U pip

I get errors whenever I run pip:

pkg_resources.VersionConflict: (pip 19.1 (/usr/local/lib/python3.7/site-packages), Requirement.parse('pip==19.0.3'))

How do I configure my Homebrew Python 3 correctly with pip3 so that updates to pip (and other packages) work when the aliases provided with Homebrew's Python 3 are on my path?

来源:https://stackoverflow.com/questions/55871398/updating-pip-after-configuring-pip-to-point-to-homebrews-pip3-causes-errors

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