一、安装Jupyter Notebook
官网提供两种方法:
conda install -c conda-forge jupyterlab
pip install jupyterlab
本人使用的是第二种,因为本身就有pip;
一个使用pip安装遇到的问题
:pip is configured with locations that require TLS/SSL...
错误问题:原因是Python没有支持好TLS/SSL
解决方法:一种解决方法是跳过TLS/SSL:
在windows用户目录下新建pip/pip.ini(utf-8编码),使用国内镜像:
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
再次使用pip安装解决问题
安装完成,输入命令:jupyter notebook 启动服务(ctrol+c可退出);
二、修改配置文件
输入命令:jupyter notebook --generate-config 生成配置文件(文件位置会输出)
找到并编辑文件:
c.NotebookApp.ip=''(表示任何ip都能访问)
c.NotebookApp.pass