Virtualenv fix - dyld: Library not loaded:

  |   Source

When a virtualenv is activated and it displays an error message similar to:

dyld: Library not loaded: @executable_path/../.Python

There is more information at and at stackoverflow.


The symbolic links to the Python executable are broken.


Pretend the virtualenv is located at ~/.virtualenv/myapp.

Go to the virtualenv directory, delete the links, re-link Python:


cd .virtualenv/

find myapp/ -type l -delete

virtualenv myapp

Go to the directory of myapp and activate the virtualenv and it should work.

Comments powered by Disqus