How do I install biopython in anaconda?

10,216

Solution 1

Package maintainers recommend using (in the terminal):

conda install -c conda-forge biopython

We deliberately recommend using Biopython from the conda-forge channel, as this is usually up to date and covers Windows, Mac OS X and Linux. The default Conda channel does have Biopython, but is often out of date. https://biopython.org/wiki/Packages

Solution 2

Open the terminal and export your path to anaconda:

export PATH=~/anaconda3/bin:$PATH

Then type:

conda install -c anaconda biopython

Solution 3

Install Anaconda Navigator, go to "Environments" and select the appropriate environment (base or your own) and click "not installed". Scroll down to biopython click the box and then install...

Share:
10,216

Related videos on Youtube

Jaswant S
Author by

Jaswant S

Updated on June 04, 2022

Comments

  • Jaswant S
    Jaswant S almost 2 years

    I get SyntaxError: invalid syntax

    while trying to install biopython using the following command.

    conda install -c anaconda biopython
    

    Could you please help me install biopython in anaconda (3) ?

    • FHTMitchell
      FHTMitchell over 5 years
      You're supposed to put that command into the terminal, not the python interpreter.
    • E.Serra
      E.Serra over 5 years
      Hahahahaha sorry this is the funniest comment ever, +1, and yes he is right you install it through command line
    • Jaswant S
      Jaswant S over 5 years
      But after installation, I get ModuleNotFoundError: No module named 'biopython
    • Maximilian Peters
      Maximilian Peters over 5 years
      did you try importing it via import Bio?