1

I am trying to install pip3. I ran brew install python3 which installed python3 correctly. I also ran brew post install python3 as I found on this site.

Now, I enter which pip3 and get /usr/local/bin/pip3

And when I run pip3 I get this message: -bash: /anaconda3/bin/pip3: No such file or directory

How do I completely remove anaconda from my computer AND install pip3 from here? I deleted the anaconda application, removed the PATH from nano ~/.bash_profile. and emptied the trash

EDIT: FIXED USING hash -r

5
  • Does your .bashrc contains something that adds anaconda to the path or some sort of alias of pip3?
    – Stradivari
    Commented Jun 16, 2019 at 1:26
  • Not sure, what should I look for?
    – user10601897
    Commented Jun 16, 2019 at 1:28
  • Any line with "anaconda" in it, don't delete it yet though. Also, you may want to checkout stackoverflow.com/questions/22585235/…
    – Stradivari
    Commented Jun 16, 2019 at 1:31
  • Nano ~/bashrc show a blank file
    – user10601897
    Commented Jun 16, 2019 at 1:54
  • ~/.bashrc don't forget the dot
    – Stradivari
    Commented Jun 16, 2019 at 1:57

2 Answers 2

1

are you running pip install command in conda environment

If you are running it in conda environment First deactivate it

Use

source deactivate
2
1

Waiting on my rep to hit 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
5
  • lrwxr-xr-x 1 [Redacted] admin 31 Jun 15 21:08 /usr/local/bin/pip3 -> ../Cellar/python/3.7.3/bin/pip3
    – user10601897
    Commented Jun 16, 2019 at 1:36
  • ls -la ../Cellar/python/3.7.3/bin/pip3 , return anything? Commented Jun 16, 2019 at 1:38
  • No such file or directory
    – user10601897
    Commented Jun 16, 2019 at 1:43
  • Explains why it cant run pip3, maybe need to check if pip3 is in different path Commented Jun 16, 2019 at 1:54
  • Yes, when I run pip3 I get /anaconda3/bin/pip3 No such file or directory, and I am trying to solve the issue of it being on the anaconda3 path
    – user10601897
    Commented Jun 16, 2019 at 1:59