Chapter 1 – Installation of Anaconda Python

on Ubuntu



AD

1.1 Prerequisites

You can run simple machine learning programs on a traditional single processor with 16 GB RAM. You can do much better on a desktop or laptop with a NVIDIA GPU and 16 GB RAM for around $1,600. Search internet for best laptops for Machine Learning. These also happen to be the best gaming laptops.

1.2 The installation of Anaconda Python

1.2.1 The installation of Anaconda Python includes Anaconda Navigator. It is a command line installation on Ubuntu. Open a terminal with:

Ctrl + Alt + t

1.2.2 Copy and paste the following to command line. They are necessary packages for the graphical user interface. See https://docs.anaconda.com/anaconda/install/linux/

apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

1.2.3 In your browser, download the Anaconda installer for Linux.

https://www.anaconda.com/products/individual#linux

1.2.4 It is important to check the download for integrity using a hash checksum. Open a terminal and run the following:

sha256sum /path/filename

Which should be the following if the filename is in your Downloads directory.

sha256sum ~/Downloads/Anaconda3.xxxx.sh

1.2.5 Check the hash number against the hash given on the Anaconda website. Follow the link that says 64-bit Linux, Py3. The hash should agree with the hash on your computer. Hashes are listed on https://docs.anaconda.com/anaconda/install/hashes/

1.2.6 Enter the following to install Anaconda for Python 3.7. Note: If you did not download to your Downloads directory, replace ~/Downloads/ with the path to the installer file.

bash ~/Downloads/Anaconda3-2020.02-Linux-x86_64.sh

1.2.7 The installer prompts “In order to continue the installation process, please review the license agreement.” Click Enter to view license terms.

1.2.8 Scroll to the bottom of the license terms and enter “Yes” to agree.

1.2.9 The installer prompts you to click Enter to accept the default install location.

1.2.10.The installer prompts “Do you wish the installer to initialize Anaconda3 by running conda init?” We recommend “yes”.

1.2.11 The installer finishes and displays “Thank you for installing Anaconda<2 or 3>!”

1.2.12 The installer provides a link to install PyCharm for Anaconda at https://www.anaconda.com/pycharm. I like PyCharm, but this is PyCharm professional which costs a monthly fee. I do not use PyCharm in this tutorial.

1.2.13 Close and open your terminal window for the installation to take effect, or you can enter the command source ~/.bashrc.






theSurfDragon.com


Conda Navigation

Table of Contents
Ch1-Installation
Ch2-Conda Navigator
Ch3-Nano Editor
Ch4-Run a Program
Ch5-Program Explained