I have installed python-biopython and successfully used it in my python scripts with something like:
import Bio
But it eventually stopped working and now even after uninstallation and reinstallation I cannot successfully import with python 2.7x. I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Bio
Requested Outputs:
Output of apt-cache policy python-biopython:
python-biopython:
Installed: 1.63-1
Candidate: 1.63-1
Version table:
*** 1.63-1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
100 /var/lib/dpkg/status
Output of find $(python -c "import sys; print '\n'.join(sys.path)") -type d -name 'Bio':
find: `/home/alex/anaconda/lib/python27.zip': No such file or directory
find: `/home/alex/anaconda/lib/python2.7/lib-old': No such file or directory
Output of python -c "import sys; print '\n'.join(sys.path)" Does not appear that biopython is listed:
/home/alex/anaconda/lib/python27.zip
/home/alex/anaconda/lib/python2.7
/home/alex/anaconda/lib/python2.7/plat-linux2
/home/alex/anaconda/lib/python2.7/lib-tk
/home/alex/anaconda/lib/python2.7/lib-old
/home/alex/anaconda/lib/python2.7/lib-dynload
/home/alex/anaconda/lib/python2.7/site-packages
/home/alex/anaconda/lib/python2.7/site-packages/Sphinx-1.3.1-py2.7.egg
/home/alex/anaconda/lib/python2.7/site-packages/cryptography-0.9.1-py2.7-linux-x86_64.egg
/home/alex/anaconda/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg
Output of apt-cache policy python:
python:
Installed: 2.7.5-5ubuntu3
Candidate: 2.7.5-5ubuntu3
Version table:
*** 2.7.5-5ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
apt-cache policy python-biopython
– A.B. Sep 23 '15 at 17:49find $(python -c "import sys; print '\n'.join(sys.path)") -type d -name 'Bio'
– A.B. Sep 23 '15 at 17:52apt-cache policy python
– A.B. Sep 23 '15 at 19:09