Installing Anaconda on the remote Hades machine
Hello,
Here is a memo to show how to install anaconda (integreted package of numpy, scipy, matplotlib,…etc…) on the Hades remote machine.
As you know, anaconda is an integrated package containing a lot of useful packages such as numpy, matplotlib etc… so you don’t have to install them one by one. Another benefit is that we can easily install a version of MKL blas library, if installed seperately, that will cause a lot of time and may be imcompatible.
Because we are using the remote machine, we are only a normal user and don’t have sudo prililege. So there are several ways to install it to our user’s directory.
One easist way is to download the compiled anaconda installer for linux anaconda-2.5.0-x86_64.sh from the anaconda’s repo. And then upload it to the remote machine’s storage, and then install it directly on the remote machine
You can choose a version that best suits your OS and your need (python2 or python3), download it to your local machine and then upload it to the remote machine.
Another easier way is to download it directly from your remote machine:
1.first log on to the remote machine by ssh by typing:
$ ssh username@hades.calculquebec.ca
$ #type your password
using wget command to download the anaconda package directly from your remote machine
$ wget https://repo.continuum.io/archive/Anaconda2-2.5.0-Linux-x86_64.sh
This command will download the installer file from the repo direcly to your remote machine.
install the anaconda on the remote machine by executing it:
$ bash Anaconda2-2.5.0-Linux-x86_64.sh
And then just follow the text instructions, always type yes or y to agreee with the license agreements…Then it will install, you can see the installation progress.
update the environment variable and make that take effect immediately
$ source .bashrc
5.And when this anaconda is installed , you’d better to install intel’s MKL Blas library, this will help better linear algebra calculations.
$ conda install mkl
Finally you can check if the MKL Blas library is correctly installed
$ python
1
2import nunmpy as np
np.__config__.show()
If there’s something MKL in the BLAS info, you are done.
Trouble shooting:
Sometimes, with olders anaconda versions (such as 2.4.1), the MKL will give warning saying the license will expire in xxx days, actually it’s already free now. You can repair by either install anaconda 2.5.0 (newer anaconda has already fixed it) or fix older installed version by:
set your installation to use the mkl-linked libraries that do not require a license
$conda remove mkl-rt
$conda install -f mkl
run conda install with the specific packages you choose or with all of Anaconda:
$conda install numpy scipy scikit-learn numexpr
or update the whole anaconda to 2.5 or newer
$conda install anaconda=2.5