Installing Python on Linux to Work with Algorithms
You use the command line to install Anaconda on Linux — you’re given no graphical installation option. Before you can perform the install, you must download a copy of the Linux software from the Continuum Analytics site. The following procedure should work fine on any Linux system, whether you use the 32-bit or 64-bit version of Anaconda:
- Open a copy of Terminal. The Terminal window appears.
- Change directories to the downloaded copy of Anaconda on your system.The name of this file varies, but normally it appears as
Anaconda3-4.2.0-Linux-x86.shfor 32-bit systems and
Anaconda3-4.2.0-Linux-x86_64.shfor 64-bit systems. The version number is embedded as part of the filename. In this case, the filename refers to version 4.2.0. If you use some other version, you may experience problems with the source code and need to make adjustments when working with it.
- Type bash Anaconda3-4.2.0-Linux-x86.sh (for the 32-bit version) or bash Anaconda3-4.2.0-Linux-x86_64.sh (for the 64-bit version) and press Enter.
An installation wizard starts that asks you to accept the licensing terms for using Anaconda.
- Read the licensing agreement and accept the terms using the method required for your version of Linux.
The wizard asks you to provide an installation location for Anaconda. The book assumes that you use the default location of ~/anaconda. If you choose some other location, you may have to modify some procedures later in the book to work with your setup.
- Provide an installation location (if necessary) and press Enter (or click Next).
The application extraction process begins. After the extraction is complete, you see a completion message.
- Add the installation path to your
PATHstatement using the method required for your version of Linux.
You’re ready to begin using Anaconda.