How to Install Anaconda/Miniconda on Linux Silently

how to install anaconda / miniconda on Linux silently

can be achieved by bash miniconda.sh -b (thanks @darthbith)

The command line usage for this can only be seen with -h flag but not --help, so I missed it.

To install the anaconda to another place, use the -p option:

bash anaconda.sh -b -p /some/path

Installing Miniconda2 Non-Interactively

You're looking for expect:

Expect is a program that "talks" to other interactive programs according to a script. Following the script, Expect knows what can be expected from a program and what the correct response should be. An interpreted language provides branching and high-level control structures to direct the dialogue. In addition, the user can take control and interact directly when desired, afterward returning control to the script.


Edit: Looking at the screenshot it's asking you to "press ENTER to continue" which I don't see in your script. You have send "\r" but that's not normally what Enter sends. On Windows it would send /r/n and on Linux it sends /n. Give that a try.

Conda - Silently installing a package

Used $conda install -y pandas and it installed without any prompts (see documentation).

Install Anaconda on Ubuntu (or Linux) via command line

Something along the lines of:

wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh

to get the installer for 64 bit linux followed by:

bash Anaconda3-2020.07-Linux-x86_64.sh

You can get the latest release from here

How to run Conda?

It turns out that I had not set the path.

To do so, I first had to edit .bash_profile (I downloaded it to my local desktop to do that, I do not know how to text edit a file from linux)

Then add this to .bash_profile:

PATH=$PATH:$HOME/anaconda/bin

Anaconda vs. miniconda

The difference is that miniconda is just shipping the repository management system. So when you install it there is just the management system without packages. Whereas with Anaconda, it is like a distribution with some built in packages.

Like with any Linux distribution, there are some releases which bundles lots of updates for the included packages. That is why there is a difference in version numbering. If you only decide to upgrade Anaconda, you are updating a whole system.

EDIT there are new options now for on the package management side. mamba can be used as a drop in replacement for conda. It has a faster solver and is a complete re-write in C++. The solver is actually experimentally available in conda with --experimental-solver=libmamba. Keywords to look for if you want to learn more: mamba, mambaforge, micromamba.

How to use Conda in Bash

you will probably have to add conda to your system´s variable path:

  1. go to your home directory:

    cd

  2. open the .bashrc :

    nano .bashrc

  3. type :

    export PATH="/PathOfYours/miniconda3/bin:$PATH"

  4. safe the .bashrc file

  5. Now try again in the terminal:

    conda --version

that should do the trick now!

for more info:
https://developers.google.com/earth-engine/guides/python_install-conda#mac_3



Related Topics



Leave a reply



Submit