FYI: this is NOT a duplicate!
Before running my python code I installed biopython in the cmd prompt:
pip install biopython
I then
In my case (MacOS X Catalina, python 3.7.6 installed by brew), I had to install it with
python -m pip install Bio
(uppercase) but use it with
from bio import pairwise2
and the worse is that I had to change the code of the package: I went into python3.7/site-packages/bio/pairwise2.py
, line 246, changed
from Bio import BiopythonWarning
into
from bio import BiopythonWarning
I hate changing the code of the package, on the next update it won't work again… Please do something to fix this bio/Bio issue.