Jupyter notebook安装

之前就装了jupyter notebook,但今天打开来发现是python2,并且似乎没法转换到python3???

so,再把python3的版本安装一下

打开CMD

pip install jupyter

then

jupyter notebook --generate-config

安全起见,生成一个密码

from notebook.auth import passwd

然后把生成的密码更新到.jupyter/jupyter_notebook_config.py文件下的

#c.NotebookApp.password = ''语句中,然后在cmd里面启动jupyter notebook

jupyter notebook

可能我已经安装了python2版本,所以修改密码后居然报错?

不过现在电脑里已经有了两个版本的jupyter notebook,

第一个可以打开jupyter Notebook的命令行窗口打开,默认是C盘下的路径,python2.7的解释器;

第二个可以在CMD的任何路径下,敲jupyter notebook,python3.6的解释器

人生苦短,何不用python
原文地址:https://www.cnblogs.com/yqpy/p/9069011.html