FYI: this is NOT a duplicate!
Before running my python code I installed biopython in the cmd prompt:
pip install biopython
I then
pip3 ❌ didn't fully work for me as there was a problem with importing a function.
pip3
conda install biopython
✔️ worked for me.