安装jupyter notebook环境搭建,遇到一个坑,python3的kernel导致

sudo pip3 install pyzmq

sudo pip3 install tornado

sudo pip3 install jinja2

sudo pip3 install jsonschema

sudo apt-get install ipython-notebook

python3 -m pip install matplotlib

ipython notebook

一、安装python和python-pip

sudo apt-get install python python3 python-pip python3-pip

sudo pip install --upgrade pip #更新pip

sudo pip3 install --upgrade pip

二、安装jupyter-notebook

sudo pip install jupyter

sudo pip3 install jupyter

三、配置可以同时使用python2和python3内核

ipython kernel install—user

python3 -m ipykernel install—user

pip2 install -U ipykernel

python2 -m ipykernel install--user

python3 -m pip install matplotlib

打开notebook

jupyter notebook

 

-------安装jupyter notebook遇到kernel问题:  Error opening stream: HTTP 404: Not Found (Kernel does not exist: 5b48eb0b-f76d-49e6-9381-37db476d3d39)

原因是prompt-toolkit版本不对...

sudo pip3 install prompt-toolkit==1.0.15

又遇到问题:

prompt-toolkit 1.0.15 has requirement six>=1.9.0, but you’ll have six 1.4.1 which is incompatible.

总之以下是解决方法:

pip3 install six --user -U
pip3 install ipython --user -U
-----------------------

 

你可能感兴趣的:(jupyter,notebook)