这里基于Ubuntu 16.04
sudo python2 -m pip install ipykernel
sudo python2 -m ipykernel install
sudo apt-get install python3-pip
sudo python3 -m pip install jupyterhub notebook ipykernel
sudo apt-get install build-essential
sudo pip install jupyter
sudo pip3 install jupyter
启动方式
jupyter notebook