I think I may have deleted a folder that contained a still-active virtualenv. Whenever I try to call pip, I get the error /Users/me/bin/pip: /Users/me/VENV/bin/python2.7: bad interpreter: No such file or directory
. The directory VENV
no longer exists, but once contained a virtualenv.
I'm using MacOS 10.13, and have homebrew-installed versions of both Python and pip:
$ which pip2
/usr/local/bin/pip2
$ which pip3
/usr/local/bin/pip3
which work fine. The problematic pip that's linked to the pip
command lives at /Users/me/bin/pip
. Since I'm unable to use it, I tried to just uninstall the problematic pip with pip uninstall pip
as explained here, but got the same error as before.
So I have two questions:
Does this seem like something that would happen if I deleted an active virtualenv?
How can I uninstall
/Users/me/bin/pip
from my system?