IPython 2.0 has just been released, so I figured I’d go ahead and update it.
I’ve already had one post dedicated to updating IPython, but that was complicated due to the discrepancy between the version available in the Ubuntu Software Center and the version available in the pip repository. After some struggles, I figured out how to install pip (since pip is not installed with Ubuntu by default) and use pip to download and install the full IPython package:
$sudo pip install ipython[all]
To use pip to update a previously installed package (in my case, IPython), I just typed the following in to Terminal:
$sudo pip install --upgrade ipython
And, it quickly downloaded IPython 2.0 and uninstalled the previous version of IPython (1.2.1). Easy!
Well, I guess I spoke too soon! Trying to run IPython:
I get this error message:
ImportError: The IPython Notebook requires tornado >= 3.1.0, but you have 2.4.1”
Great! I have absolutely no idea what “tornado” is, nor am I totally certain how to update it.
$sudo apt-get tornado
and got this: “
E: Invalid operation tornado
For some reason, I decided to try the IPython update command I used above, but add “
[all]” to the end of the command like was necessary for the initial installation.
$sudo pip install --upgrade ipython[all]
Guess what! It friggin’ worked! The very first thing that popped up on screen was info regarding updating “tornado”! Can’t believe I got burned by the “
[all]” command again when dealing with installing IPython! But, it doesn’t seem logical to me that if you’re updating an existing version of IPython that it wouldn’t update all existing components/dependencies of IPython that are already installed on the system.
Whatever. It’s updated and it’s running!