简体   繁体   English

Pip3 不使用 python3 安装,异常情况?

[英]Pip3 NOT installing with python3, unusual case?

I am trying to install pip3.我正在尝试安装 pip3。 I ran brew install python3 which installed python3 correctly.我运行brew install python3 python3 正确安装了python3。 I also ran brew post install python3 as I found on this site.我也在这个网站上找到了brew post install python3

Now, I enter which pip3 and get /usr/local/bin/pip3现在,我输入which pip3并获取/usr/local/bin/pip3

And when I run pip3 I get this message: -bash: /anaconda3/bin/pip3: No such file or directory当我运行pip3我收到此消息: -bash: /anaconda3/bin/pip3: No such file or directory

How do I completely remove anaconda from my computer AND install pip3 from here?如何从我的计算机中完全删除 anaconda 并从这里安装 pip3? I deleted the anaconda application, removed the PATH from nano ~/.bash_profile.我删除了 anaconda 应用程序,从 nano ~/.bash_profile 中删除了 PATH。 and emptied the trash并清空垃圾

EDIT: FIXED USING hash -r编辑:固定使用 hash -r

are you running pip install command in conda environment您是否在 conda 环境中运行 pip install 命令

If you are running it in conda environment First deactivate it如果你在 conda 环境中运行它首先停用它

Use

source deactivate

Waiting on my rep to hit 50.等待我的代表达到 50。

Maybe an answer:也许一个答案:

what is the output of?什么是输出? Checking to see if its a link检查它是否是一个链接

ls -la /usr/local/bin/pip3


Also look at your path也看看你的路径

export | grep PATH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM