gpt4 book ai didi

python - PATH 指向错误版本的 pip

转载 作者:行者123 更新时间:2023-12-01 05:01:32 25 4
gpt4 key购买 nike

我的机器上安装了 python 的 anaconda 发行版。在安装 anaconda 之前,我已经安装了 pip。现在,我的系统使用以前版本的 pip 而不是 anaconda 版本。特别是

arjuns-mbp:~ Arjun$ which pip
/usr/local/bin/pip

arjuns-mbp:~ Arjun$ which easy_install
/Users/Arjun/anaconda/bin/easy_install

arjuns-mbp:~ Arjun$ which python
/Users/Arjun/anaconda/bin/python

结果是,如果我调用 pip install,它不会将其添加到我的 anaconda 版本的 python 中。到目前为止,我还没有遇到简单使用 easy_install 将软件包添加到 anaconda 的问题,但很高兴知道导致这种差异的原因以及如何修复它

编辑

我尝试使用 conda install pip,但不起作用。当我做 conda 名单pip 在 conda 安装之前和之后出现

最佳答案

您可能需要conda install pip

关于python - PATH 指向错误版本的 pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26010603/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com