Linux Server Miniconda Installation

Install the Miniconda environment on Remote Server

Anaconda installation doesn’t need to ask for the admin permission. So it’s a good choice used on server. I would show how to install on the server in the following.

Download the Miniconda package

1
2
3
4
5
# use `curl` to download the package from miniconda. In own computer of MacOS.
curl -O "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"

# use `wget` to download the package, in the server
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda_package

Install on the Server

1
2
3
4
5
# give the execute permission of the file
chmod +x /path/to/yourscript.sh

# run. `./` is important, since it points to the current path
./yourscript.sh

Activate the Environment

1
2
3
4
source Miniconda/bin/activate 

# deactivate the environment, just type in the terminal
deactivate

Then you have the environment for your project, you can just use pip install xx to install the modules you need.

Reference

  1. Reddit: what advantages of using anaconda