landlab

Anaconda Install

Install Anaconda

This should work for Anaconda users with Windows 7+, Mac OS 10.6+, or Ubuntu Linux (only the latest version has been tested).

Once you have a full Python distribution on your machine, it is vital to check that it has been successfully set as the default copy of Python on your system. Open a command prompt (Terminal on a Mac, or Command Prompt on a PC) and type the lines below (note the $ indicates that you are on a command line):

MAC:

$ which python
$ which ipython

WINDOWS:

$ where python
$ where ipython

In each case, both commands should return the same path, and it should clearly refer to Anaconda. Details will depend on your operating system but it could look something like this:

/anaconda/bin/python

If you don’t see reference to your newly installed distribution (i.e., /anaconda), click here to resolve the problem.

Make sure you have the latest version installed (close anaconda before doing this):

$ conda update –all

Once the path to both python and ipython point to your new distribution, open the Python editor in Anaconda called Spyder.

On the Spyder toolbar, go to Tools → Open command prompt to open the command line.

Alternatively you can open a standard terminal window, such as an xterm (X11.app) or terminal window (Terminal.app) on a Mac, or a command prompt on a Windows machine. If you do use a standard terminal and run into problems, make sure you have resolved your path issues.

Now to install Landlab!

You can either install with the conda or the pip package managers. Conda is recommended, as it reduces the chances of versioning conflicts. Try to remember which you choose to avoid confusion when updating later! (If you installed landlab prior to May 19th 2016, you will have used pip).

Type either (for conda install):

$ conda install landlab -c landlab -c conda-forge

… or for pip install:

$ pip install landlab

Test Landlab install

Once Landlab has been successfully installed, on the Python shell line, check to make sure it is up-to-date (note that those are double underscores around version; also note that you may need to close and reopen Anaconda before typing the below commands):

$ import landlab
$ landlab.__version__

The version number should be greater than 1. You can check the version number of the most recent release here.

Install/Test problems

If you are having problems when installing, testing or running Landlab, please visit our Troubleshooting page.