python3.x
sudo pip3 install -U ipykernel
python2.x
确保Python2下安装了ipykernel
sudo pip2 install -U ipykernel
然后运行如下命令增加内核:
python2 -m ipykernel install --user
pip安装软件时出现Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build*的解决方案
IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2.
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
python2.7 ipython Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-Vxrpi9/ipython/
wget https://pypi.python.org/packages/f7/48/5702699caf20208d61a92157c01d1eb281093e3e02e9bcd4b5031ccea6a1/ipython-5.4.1-py2-none-any.whl#md5=2b801f50b5e82a3fabca42b661568bf5
sudo pip install ipython-5.4.1-py2-none-any.whl
至此,运行jupyter notebook你将看到如下所示: