Reputation: 25
I'm a newbie in PyCharm, and using it as general IDE for python.
My problem here is that when I run my code in PyCharm, it doesn't see BioPython. It says:
Traceback (most recent call last):
File "[path-to-code]", line 9, in <module>
from Bio import SeqIO
ImportError: No module named Bio
So I went to 'Preferences->Project:code->Project structure' and added entire site-packages as content root. But then, PyCharm won't run at all and gives this error:
Fatal Python error: PyThreadState_Get: no current thread
Anyone faced similar problem before?
Note: Console python can recognize when I import Bio, and works just fine.
Upvotes: 0
Views: 3338
Reputation: 39287
Instead of altering your project structure, in the preferences go to Preferences > Project > Project Interpreter
. Click the +
and search for biopython
.
Upvotes: 1