Python - Anaconda

Many projects require the use of the Python scripting language. Python comes in a few major versions - 2.7, 3.5, and 3.6. Python 3.X is not entirely backwards compatible with 2.7, and there are issues between the point releases (eg. 3.5 to 3.6). Some software is still not compatible with any version of Python 3, so we need to make provision for a range of releases. In addition there are a wide range of scientific Python modules which users may require, and installing them all as needed is inconvenient.

To address these issues we point users at the Anaconda Python distribution, which provides self-contained versions of all major Python releases (2.7, 3.5, 3.6) with a range of pre-installed science packages. The Anaconda distributions are available for macOS, Windows, and Linux, simplifying cross-platform development.

The Anaconda distributions need to be installed in your home directory. For convenience the installers are available under /opt/anaconda/ and can be run by typing

sh /opt/anaconda/


sh /opt/anaconda/

depending on whether you need Python 2.7 or 3.5/3.6 respectively - you can install both if you want and then switch between them.

The final step of the Anaconda install will ask about prepending their Python to your PATH variable so it replaces the system Python. Do not enable this - there are various potential issues which it's best to avoid. Instead use the anaconda2/3 modules (below) which will accomplish the same thing in a more controlled manner.

For further information on using Anaconda, and how to configure various Python environments, you should Read The Fine Manual.

public/teaching-linux-systems/python_-_anaconda.txt · Last modified: 2017/07/18 16:17 by Robert Ryans

Back to Top Sitemap News