biopython no module named Bio

Gabriel picture Gabriel · Apr 16, 2018 · Viewed 23.7k times · Source

FYI: this is NOT a duplicate!

Before running my python code I installed biopython in the cmd prompt:

pip install biopython

I then get an error saying 'No module named Bio' when try to import it in python

import Bio

The same thing happens with

import biopython     

It should be noted I have updated PIP and run python 3.5.2
I appreciate anyone's help.

Answer

Tanay Agrawal picture Tanay Agrawal · Apr 16, 2018

use this:

pip3 install biopython

and then import Bio worked for me