Class01 Answer:

Install Anaconda Python on Linux

I did this lab and it was easy.

If you want to do this lab, you should check if Anaconda is already installed.

This shell command tells me if Anaconda is installed:

ls -la ~/anaconda3/

If Anaconda is installed, I should see something like this:


fx411@e80:~ $ 
fx411@e80:~ $ ls -la ~/anaconda3/
total 160
drwxrwxr-x  20 fx411 fx411  4096 Nov  3 19:30 ./
drwxr-xr-x  29 fx411 fx411  4096 Nov 15 13:00 ../
drwxrwxr-x   2 fx411 fx411 12288 Nov  4 02:49 bin/
drwxrwxr-x   2 fx411 fx411 12288 Nov  3 19:30 conda-meta/
drwxrwxr-x   3 fx411 fx411  4096 Nov  3 19:30 doc/
drwxrwxr-x   2 fx411 fx411  4096 Nov  3 19:30 envs/
drwxrwxr-x   7 fx411 fx411  4096 Nov  3 19:30 etc/
drwxrwxr-x  26 fx411 fx411  4096 Nov  3 19:30 include/
drwxrwxr-x  14 fx411 fx411 32768 Nov  3 19:30 lib/
drwxrwxr-x   3 fx411 fx411  4096 Nov  3 19:30 libexec/
-rw-------   2 fx411 fx411  1254 Mar 25  2015 LICENSE.rst
-rw-rw-r--   1 fx411 fx411  4524 Feb  4  2016 LICENSE.txt
drwxrwxr-x  94 fx411 fx411  4096 Nov  3 19:30 mkspecs/
drwxrwxr-x   2 fx411 fx411  4096 Nov  3 19:30 phrasebooks/
drwxrwxr-x 198 fx411 fx411 12288 Nov  3 19:30 pkgs/
drwxrwxr-x  15 fx411 fx411  4096 Nov  3 19:30 plugins/
drwxrwxr-x  14 fx411 fx411  4096 Nov  3 19:30 qml/
-rw-r--r--   2 fx411 fx411   789 Jul 29  2015 README.rst
drwxrwxr-x   2 fx411 fx411  4096 Nov  3 19:30 sbin/
drwxrwxr-x  19 fx411 fx411  4096 Nov  3 19:30 share/
drwxrwxr-x   3 fx411 fx411  4096 Nov  3 19:30 ssl/
drwxrwxr-x   2 fx411 fx411 12288 Nov  3 19:30 translations/
drwxrwxr-x   3 fx411 fx411  4096 Nov  3 19:30 var/
fx411@e80:~ $ 
fx411@e80:~ $ 

If I want to uninstall Anaconda I issue a shell command:

rm -rf ~/anaconda3/

If I want to install Anaconda I issue some shell commands:


cd ~
rm -f Anaconda3*sh
rm -rf anaconda anaconda3
wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh
bash Anaconda3-5.3.1-Linux-x86_64.sh -b
mv anaconda3/bin/curl anaconda3/bin/curl_ana
echo 'export PATH=${HOME}/anaconda3/bin:$PATH' >> ~/.bashrc
bash

Class01 Lab


learn4.us About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen