First, open up your Environment configuration screen.
Second, switch to the postIntall script and paste the following to install Miniconda3:
#!/bin/bash
set -ex
# conda installer
export PATH=/opt/conda/bin:$PATH
install=Miniconda3-4.7.12.1-Linux-x86_64.sh
curl -O https://repo.continuum.io/miniconda/$install
bash $install -b -p /opt/conda
rm $install
You can then install packages via conda
, e.g., conda install numpy
.
To install Miniconda2, switch the install
line to
.
install=Miniconda2-4.5.4-Linux-x86_64.sh
Where will this be useful?
In multi-language environments, or environments where conda isn't pre-installed. Conda can reduce a lot of installation headaches.
You can also use Conda to install languages, and packages for those languages, by adding additional conda channels, e.g.:
conda install -c r -y r-ggplot2 r-lattice r-mass
conda clean --yes --all
This script will install R and the R packages ggplot2
, lattice
, and MASS
.
The -y
flag tells conda to choose 'yes' whenever choosing between yes and no.conda clean --yes --all
removes caches and tarballs, making your container smaller and faster.