Fix For Broken Virtualenv Symlinks

As several other people have found (it was mentioned on Python Bytes back in April but I can’t remember which one) updating Brew Python breaks all your virtualenvs. The simplest solution is to delete them and start again, a quicker one (maybe) is to do this:

cd path/to/venv
find . -type l -delete // gets rid of the broken symlinks
mkvirtualenv venv-name // or virtualenv venv-name if you're not using venvwrapper.

This logic is taken wholesale from a comment by laymonk on a script to fix the issue.


There are no comments yet.

Add a Comment

You can use Markdown to format your comment.

Buy me a coffee Buy me a coffee