How to use the newest ipython in ubuntu12.04?
The newest ipython is 1.0. The ipython in official software center is too old.
Thanks
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYou can use setuptools or pip. These usually get the latest version of any python package listed on PyPi
Try
sudo apt-get install python-pip # or python-setuptools
sudo pip install ipython
pip
is indeed the way to install Python packages from PyPI. Also consider installing it in the user's home directory rather than system wide (less harmful in general - although ipython isn't likely to break things) by using pip install --upgrade --user packagename
. It will then install it to ~/.local/bin
which is in the PYTHONPATH
on Ubuntu.
Aug 22, 2013 at 15:43
--user
flag when using pip. Especially for packages that interact directly with the operating system and its libraries eg. PIL. This avoids breaking anything which depends on certain versions on libraries by not installing it system-wide.
Aug 22, 2013 at 15:49
pip install --upgrade --user ipython
will remove old ipython in system. Is it safe ?
Aug 23, 2013 at 3:38
ipython
from the system, nor will the regular sudo pip install packagename
do. DPKG/APT installs in a different location, that had precedence over it. That makes running ipython
or import packagename
look first in the locations where pip
installs. If you remove the pip
package again, e.g. sudo pip uninstall packagename
(or the user-equivalent), then you'll be using the older Ubuntu packaged version again. So, yes, it is totally safe. Yet, I recommend using --user
without sudo if you only use it for that user account.
Aug 23, 2013 at 8:43
pip
method in a few days if I can't find one.
Aug 23, 2013 at 8:45
sudo pip install --upgrade ipython