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 wirtel.be and at stackoverflow.

But...

The symbolic links to the Python executable are broken.

So...

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

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

cd

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