Need help using Biopython
1
0
Entering edit mode
17 months ago
Joseph • 0

Hello,

I am new to Biopython. But it shows up in my root folder in Anaconda on the website as well as lib/sitepackages however when I try something like this in Visual studio or PyCharm I get squiggly lines. I've deleted and reinstalled. I am not quite sure what I am doing wrong and sorry for the noob question.

enter image description here

Biopython Anaconda Microsoft visual-studio • 899 views
ADD COMMENT
0
Entering edit mode

Here are some example with BioPython and NCBI blast - https://www.kaggle.com/code/alexandervc/cafa5-20-ncbiwww-blast-biopython - you can use Kaggle cloud to play with them - just press "copy&edit" button and it will create your own copy of notebook

ADD REPLY
0
Entering edit mode

Do you have the interpreter set up for your project in PyCharm? I'd recommend having a conda environment with Biopython installed in it and use that as the interpreter for the project. Also, did you try running your script? Squiggly lines don't need to be a problem ;)

ADD REPLY
0
Entering edit mode
17 months ago

The problem might be that you installed the package into a conda environment and not globally, so VS can't find it. Maybe you have to explicitly tell him in which environment you are working or make sure that you are telling VS code to use the right interpreter.

Check the documentation of VS code for using python environments: https://code.visualstudio.com/docs/python/environments

Hope it helps

ADD COMMENT

Login before adding your answer.

Traffic: 2945 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6