Wednesday, October 8, 2014

Python Installation instructions (including IPython / IPython Notebook)

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.

Linux

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

We 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. Please follow the instructions described in this blog.

If you run into trouble

Leave a comment here with the issue you found.

4 comments:

  1. Whilst this particular irritated lots of hublot replica uk the actual call alter which was probably the most divisive had been very easily the actual change in the Flower logo design, that within contemporary rolex replica sale is actually related to classic wrist watches, towards the Protect logo design. Time for the actual replica watches we are able to right now very easily distinguish both using the logo design as well as textual content close to 6 00, however they are barely the only real variations. Here's the actual band about the fake watches. It's very a silly modification towards the unique Classic's band, specifically it offers replica watches uk rivets, the style choice that is fairly divisive amongst enthusiasts from the dark these types of. The actual traditional, on the other hand, runs on the easier, much more traditional band that's globally recognized amongst enthusiasts.

    ReplyDelete
  2. Thanks for sharing the valuable information to shre with us. For more information visit our website. Python Training In Hyderabad

    ReplyDelete
  3. You are doing a great job by sharing useful information about Data Science course. It is one of the post to read and improve my knowledge in Data Science.You can check our Python installation on Windows, Ubuntu, and Mac, information for more information about how to install and run python on windows.

    ReplyDelete
  4. Pretty Post! Thank you so much for sharing this good content, it was so nice to read and useful to improve my knowledge as an updated one, keep blogging.

    Python Certification Training in Electronic City

    ReplyDelete