pip: bad interpreter: /../ no such file or directory

Question:

I can’t use pip I get an error

pip: bad interpreter: /Applications/Xcode.app/Contents/Developer/usr/bin/python3: no such file or directory 

I try:

brew link --overwrite python 
python3 -m pip install whatever
brew install python

brew postinstall python

but nothing works.

Asked By: adam

||

Answers:

somehow python3 cmd is messed up in system by you. you need to reset it.

just run the command

set python3=/usr/bin/python3

now you can use pip

Answered By: sahasrara62
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.