Sunday, 11 October 2015

get used to PROGRAMING: Python Installation

This page describes how to install Python and the other packages (Numpy, Scipy, IPython, IPython Notebook, Matplotlib) required for the course for Mac OS X, Linux and Windows.

In Linux, the installation instructions are pretty straightforward. Assuming that you are running Debian or Ubuntu, you just need to execute the following command in the terminal:

sudo apt-get install python-numpy python-scipy python-matplotlib ipython-notebook

For Fedora users, you can use the yum tool.

Mac OS X, Linux, Windows
I recommend downloading and installing the Anaconda Python distribution. The installations instructions are available here.

Just download the installer and execute it with bash.

Anaconda includes most of the packages we will use and it is pretty easy to install additional packages if required, using the conda or pip command-line tools.

If the above two methods do not work for OS X

The MacPorts way
You can try installing everything using MacPorts. First download and install macports and then issue the following command in a terminal:

sudo port install py27-zmq py27-tornado py27-nose

The avove dependencies are required in order to run IPython notebook. Then run:

sudo port install py27-numpy py27-matplotlib py27-scipy py27-ipython

The advantage of this method is that it easy to do. The downsides:

It can take a couple of hours to finish the installation depending on your machine and internet connection, since macports will download and compile everything as it goes.
If you like having the bleeding edge versions, note that it can take a while for them to be released on macports
Finally, macports can create conflicts between different python interpreters installed in your system

Using Apple’s Python interpreted and pip
If you feel adventurous, you can use Apple’s builtin python interpreter and install everything using pip.
If you run into trouble
Leave a comment here with the issue you found.


  1. It’s an extremely amazing powerful resource that you’re offering and you just provide it away cost-free!! I that can compare with discovering websites ones understand the particular in providing you with fantastic learning resource for zero cost. We truly dearly loved examining this blog. Have fun here! best blog platform for programmers

  2. I precisely wanted to appreciate you all over again. I do not know the things I would have sorted out in the absence of the entire suggestions shown by you concerning my problem. It was a difficult issue in my position, nevertheless witnessing a new expert mode you dealt with that took me to weep over gladness. I am happier for the help and as well , pray you realize what a powerful job you were putting in training the rest through your site. Most probably you haven’t met all of us. python map