Search code examples
jupyter-notebookanacondacondaimporterrorbiopython

Error in %conda list biopython in jupyter notebook (macOS)


I use jupyter notebook, I have anaconda installed on the system. I get this error when I import Bio

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-de5ff3e63c39> in <module>
----> 1 from Bio import Phylo
      2 import wget
      3 import re
      4 from Bio import SeqIO
      5 from Bio.SeqRecord import SeqRecord

ModuleNotFoundError: No module named 'Bio'

and when I look at the packages in this path /Users/morteza/anaconda3/lib/python3.7/site-packages/, bio and biopython are there

Can somebody help me with this? Thanks


Solution

  • I found a solution so I share here maybe will be useful for someone. I changed the name bio to Bio in the path /Users/morteza/anaconda3/lib/python3.7/site-packages/ using mv bio Bio command then the import worked properly.