Mac 安装jupyter notebook
2023-04-23 本文已影响0人
冰点雨
1.安装anaconda
去anaconda官网下载pkg包,正常安装即可
2.pip安装jupyter notebook
(1) 安装jupyter
pip3 install jupyter
或者用国内镜像安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter
(2) 启动jupyter
# 启动jupyter
jupyter notebook
(3)生成jupyter notebook配置文件
# 生成jupyter notebook配置文件
jupyter notebook --generate-config
# >> 这里会输出 `jupyter_notebook_config.py` 的路径
用终端打开配置文件或者直接打开配置文件编辑
c.NotebookApp.notebook_dir = '写自己的路径'
再次打开jupyter notebook,配置即可生效