install Anaconda for all users on Ubuntu 14.04

Change the install location from default directory to another directory where all users can access. In my case, :
default install directory: /home/oyamada/anaconda2
customized install directory: /opt/anaconda/anaconda2

Add the customized install directory to system path. Add the following line at the end of /etc/profile:

export PATH="/opt/anaconda/anaconda2/bin:$PATH"

Assign the write permission of the customized install directory to some account, say YOUR_ACCOUNT, for package manage. At the first time you try to install, update, or modify some python packages, the system show error message like Error: Missing write permissions in: /opt/anaconda/anaconda2 and say execut the following command

conda create -n my_root --clone=/opt/anaconda/anaconda2

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s