0

When I run pip, I get this message:

$ pip
-bash: /usr/local/bin/pip: /usr/local/opt/python/bin/python3.6: bad interpreter: No such file or directory

How can I fix it ?

DevonDahon
  • 7,460
  • 6
  • 69
  • 114
  • Run `type pip` to see which file/script/alias you are actually running, then edit that file and correct it. – Mark Setchell Feb 06 '19 at 11:39
  • 3
    You may want to take a look at this thread: https://stackoverflow.com/questions/36311336/pip-suddenly-using-wrong-version-of-python – fmagno Feb 06 '19 at 11:46
  • @MarkSetchell Thanks! I had it working by replacing `#!/usr/local/bin/pip: /usr/local/opt/python/bin/python3.6` by `#!/usr/local/opt/python/libexec/bin/python` – DevonDahon Feb 06 '19 at 11:56

0 Answers0