Open datalass1 opened 5 years ago
Change to the /tmp directory on your server. This is a good directory to download ephemeral items, like the Anaconda bash script, which we won't need after running it.
cd /tmp
Use curl to download the link that you copied from the Anaconda website:
curl -O https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh
We can now verify the data integrity of the installer with cryptographic hash verification through the SHA-256 checksum. We’ll use the sha256sum command along with the filename of the script:
sha256sum Anaconda3-5.3.1-Linux-x86_64.sh
You’ll receive output that looks similar to this:
Output
55e4db1919f49c92d5abbf27a4be5986ae157f074bf9f8238963cd4582a4068a Anaconda3-5.0.1-Linux-x86_64.sh
You should check the output against the hashes available at the Anaconda with Python 3 on 64-bit Linux page for your appropriate Anaconda version. As long as your output matches the hash displayed in the sha2561 row then you’re good to go.
Now we can run the script:
bash Anaconda3-5.0.1-Linux-x86_64.sh
You’ll receive the following output:
Output
Welcome to Anaconda3 5.0.1 (by Continuum Analytics, Inc.)
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
Press ENTER to continue and then press ENTER to read through the license. Once you’re done reading the license, you’ll be prompted to approve the license terms:
Output
Do you approve the license terms? [yes|no]
As long as you agree, type yes.
At this point, you’ll be prompted to choose the location of the installation. You can press ENTER to accept the default location, or specify a different location to modify it.
Output
Anaconda3 will now be installed into this location:
/home/datascience/anaconda3
[/home/datascience/anaconda3] >>>
The installation process will continue, it may take some time.
Once it’s complete you’ll receive the following output:
Output
...
installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/sammy/.bashrc ? [yes|no]
[no] >>>
Type yes so that you can use the conda command. You’ll next see the following output:
Output
Prepending PATH=/home/sammy/anaconda3/bin to PATH in /home/sammy/.bashrc
A backup will be made to: /home/sammy/.bashrc-anaconda3.bak
...
In order to activate the installation, you should source the ~/.bashrc file:
source ~/.bashrc
Once you have done that, you can verify your install by making use of the conda command, for example with list:
conda list
You’ll receive output of all the packages you have available through the Anaconda installation:
Output
# packages in environment at /home/sammy/anaconda3:
#
_ipyw_jlab_nb_ext_conf 0.1.0 py36he11e457_0
alabaster 0.7.10 py36h306e16b_0
anaconda 5.0.1 py36hd30a520_1
...
Now that Anaconda is installed, we can go on to setting up Anaconda environments.
follow this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-16-04