Python – How to install ipython notebook on ubuntu 17

ipythonpythonUbuntu

I tried to install ipython notebook on my OS.But there was an error.How can I solve this?

sudo apt-get install ipython-notebook

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ipython-notebook is not available, but is referred to by another packag.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ipython-notebook' has no installation candidate

Best Answer

Do you already have python installed? If so, try:

sudo apt-get install ipython

or if you have pip:

pip install ipython ipython-notebook

Regardless, I instead recommend installing Anaconda or Miniconda from:

https://www.continuum.io/downloads

This will help you setup virtual environments and packages.