How to install Anaconda python for all users?

Anaconda python distribution is very convenient to deploy scientific computing env (SCE) and switch python versions as you want. By default, the installation will locate python into ~/anaconda and the SCE can only benefit the local user.

But what I need is to provide a complete SCE wit Anaconda while masking the system-wide python version, because my cluster is running Spark and provides services for multiple users in our team. Is it possible with current Anaconda version?

Xiaming


Solution 1:

The installer lets you install anywhere. You can install it to a global location, like /opt/anaconda.

Solution 2:

Add the anaconda PATH to /etc/profile:

for anaconda 2 :

PATH=$PATH:$HOME/anaconda/bin

for anaconda 3 :

PATH=$PATH:$HOME/anaconda3/bin

and then :

source /etc/profile

Solution 3:

Anaconda Cluster from Continuum that addresses these issues. Check out https://docs.continuum.io/anaconda-scale/