Resolving PyCharm python error - dyld: Library not loaded

The error message smells like you've probably updated your Python version, which can occasionally break virtualenvs with those symptoms.

The easiest fix is to just delete and recreate the virtualenv.


I had the same issue, and as AKX says, deleting and recreating the virtualenv solved it. For those who, like me, weren't sure exactly how to do this, these commands did the trick for me:

$ find ~/.virtualenvs/env-name/ -type l -delete
$ virtualenv ~/.virtualenvs/env-name

Replace "env-name" with the name of the virtual environment in question. The path displayed in the error message should show you what the virtualenv name is.


Just create a new virtual environment, by creating a new project. This is mostly because you ran a Python upgrade or did a unlink and re link of the python binaries. Also it helps if you can check at once without IDE , in the terminal if the program is working or not. Creating a new Virtual environment worked for me !!