0

I'd like to write a bash script which automatically downloads the miniconda installation script in Linux-x86_64 for python2.7.

Apparently I have to go to the website and manually download the installation file.

I can get slightly older version here which would give me conda 4.5.12 version but from the miniconda website I get conda 4.6.9

Basically I want a function like below but instead of downloading this file, I'd like to have the latest version. Thanks, Jen.

    #!/bin/bash

    #Function to Download miniconda

    function download_miniconda() {

    url=http://repo.continuum.io/miniconda/Miniconda2-4.5.12-Linux-x86_64.sh
    wget -c "$url"           
 }

One work away around would be to run conda update conda after installing 4.5.12 but I'd like to avoid this.

1 Answer 1

0

If you open https://docs.conda.io/en/latest/miniconda.html in Firefox, you can right-click on the "64-bit (bash installer)" link there and select "Copy link location" and then paste that link somewhere, like in your download script. That gives the following link: https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .