Updating IPython and Anaconda

Python

Since I discovered Anaconda Python distribution, I only work with it, and I’m really happy for that. On a previous entrance, I wrote about how to update Python packages, but today’s entrance is a step forward.

Recently, IPython has a new version with a very important update, moving from versión 1.1 to 2.0 (published on 2014 April). I’m using the conda tool for updating Anaconda.

Verifying the IPython version

From Start / Execute, let’s write ipython to get an IPython console:

consola IPython

consola IPython

In my case, I am running versión 1.1, but  it’s time to move to version 2.0.

Updating

First of all, you need a MS-DOS console, after Start / Execute and write cmd. The instruction to update is:

conda update anaconda

But, we have a numpy conflict:

coda update anaconda

coda update anaconda

The confloct arised because I had PyScripter opened, and if you have something running, updating is not possible.

Another solution is to update the numpy package by doing:

conda update numpy

Once solve, let’s execute again conda update anaconda, and now, everything seems ready to update. You’ll get a list of packages to be updated:

actualiza anaconda

updating anaconda

We are asked to change links, and we say yes:

actualiza anaconda

updating anaconda

And … the updating process starts, downloading all packages.

actualiza anaconda

actualiza anaconda

After a while, the process ends:

conda update anaconda

conda update anaconda

Now, you have everything updated except IPython, and we need to proceed with another update:

conda update ipython

actualiza ipython

updating ipython

You confirm the action:

actualiza ipython

updating ipython

Everything has finished, and it’s time to verify that we are now using IPython version 2.0:

actualiza ipython

updating ipython

Clean old tarballs

Once updated, it is highly recommended to clear old tar files (also, to remove unnecesary files). To do that, you need to execute this command::

conda clean -t

First, we receive a list of all old packages to be cleaned, and it ask to to proceed:

actualiza anaconda

actualiza anaconda

confirm the action by saying yes, and … done!

actualiza anaconda

updating anaconda

Is is needed to update?

My opinion is that yes, because new versions solve bugs and offer new functionalities with more speed, better performance on new features. Also, the time spent in updating is shot (about 5-8 minutes aprox), so the time invested worth it.

In case you need a concrete version if a package, don’t update.

I hope this topic would be interest you, and have a nice day.