Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install miniconda on Ubuntu automatically

Tags:

python

ubuntu

Download install file Miniconda2-latest-Linux-x86_64.sh from https://conda.io/miniconda.html, install it from command line. There are some questions need to be taken care of manually, like License, install path and adding binary into $PATH. My question is: is there any way to automatically install it by one command? Such as

bash Miniconda2-latest-Linux-x86_64.sh \
    -license yes -install_path ~/miniconda \
    -to-bash-profile yes
like image 892
delusionxb Avatar asked Aug 15 '17 04:08

delusionxb


People also ask

Do I need Python to install Miniconda?

Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others.


1 Answers

You can do

bash ~/miniconda.sh -b -p $HOME/miniconda

-b is for for batch-mode, which includes accepting the license, and with -p you provide the installation path/prefix

Seen here

like image 60
Michael P Avatar answered Sep 23 '22 23:09

Michael P