I recently launched (OS X 10.6.8) brew update and brew upgrade and am working in virtualenv, which now fails. I tried:
$ brew unlink python && brew link python Unlinking /usr/local/Cellar/python/2.7.8_1... 38 symlinks removed Linking /usr/local/Cellar/python/2.7.8_1... 35 symlinks created
But in virtualenv, I still get the following:
$ python --version dyld: Library not loaded: @executable_path/../.Python Referenced from: /Users/admin/.virtualenvs/saves/bin/python Reason: image not found Trace/BPT trap
I found another post about this, but the solution still seems unclear. I was in a hurry, so I uninstalled the Python version and ran brew doctor , which returned the error above as a warning:
sh: line 1: 40991 Trace/BPT trap python -V 2>&1
Then brew install python . Still getting the above error in virtualenv.
Related questions and a debugging message are not final:
Broken links in Virtualenvs
dyld-library-loaded-executable_path-python
Update
Creating a new virtualenv solved this specific problem.
python homebrew virtualenv
Dave evert
source share