Resolve PIP Bad Interpreter Error for Zsh in Terminal on Mac - DevPops-Inc/python GitHub Wiki

• The following resolution is for if you receive a bad interpreter error when running PIP in Zsh.
image

• Type which pip and press “return” key to get location of PIP application.
image

• Type ls /usr/local/opt/python@< latest version > and press “return” key to get the latest version of PIP.
image

• Type rm -r < PIP path > and press “return” key to delete PIP application.
image

• Type ln -s /usr/local/opt/python@< latest version >/bin/pip3 < PIP path > and press “return” key create a symbolic link for PIP to latest version.
image

• Type pip and press “return” key to error won’t appear this time.
image

⚠️ **GitHub.com Fallback** ⚠️