Bad interpreter for virtualenv and pip

Viewed 285

This is my first experience with mac ( I had experience with linux ) I had downloaded pip and virtualenv a few days before using normal commands. I tried using pip and virtualenv today and faced a bad interpreter error.

/usr/local/bin/virtualenv
➜  ~ virtualenv
zsh: /usr/local/bin/virtualenv: bad interpreter: /Library/Developer/CommandLineTools/usr/bin/python3: no such file or directory
➜  ~ cd ../../Library/Developer/CommandLineTools/usr
➜  usr ls
share
➜  usr cd
➜  ~ pip
zsh: /usr/local/bin/pip: bad interpreter: /Library/Developer/CommandLineTools/usr/bin/python3: no such file or directory
➜  ~ cd ../../Library/Developer/CommandLineTools/usr
➜  usr ls
share

and going to

cd ../../Library/Developer/CommandLineTools/usr

I get the following result.

usr cd && cd ../../usr/local/bin
➜  bin ls
code        httpclient  pip3        pod         virtualenv
fuzzy_match pip         pip3.8      sandbox-pod xcodeproj

How should I resolve this this?

0 Answers
Related