This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Need help using Biopython

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

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 ;)

1 answer

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

Log in to answer this question.