Last active
November 9, 2016 20:04
-
-
Save sjbertolani/96eba61298debce3bd5356744a5abbf8 to your computer and use it in GitHub Desktop.
Fixing Pyrosetta4 (new bindings) to work with Anaconda Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## This is a note on how to fix the new Pyrosetta4 bindings (which now pip install!!!) if you are using anaconda's python. | |
| So assuming you have downloaded the latest bindings, unzipped them, pip installed them (all with anaconda's python at the front of your path). | |
| Then, you open up python (in a jupyter notebook) and try | |
| ``` | |
| >>>import rosetta | |
| >>>import pyrosetta | |
| ``` | |
| Unfortunately, it dies with the following error: | |
| Traceback (most recent call last): | |
| import rosetta | |
| ImportError: /home/carlin/bin/anaconda/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/carlin/bin/anaconda/lib/python3.5/site-packages/pyrosetta-4.0-py3.5.egg/rosetta.so) | |
| """ | |
| This seems to stem from the version of libgcc that comes installed in anaconda. You can fix this by updating that lib with the following line | |
| ``` | |
| conda install libgcc | |
| ``` | |
| Now import rosetta should work ( this works for both python 2.7 and 3.5 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment