美文网首页
Mac 安装jupyter notebook

Mac 安装jupyter notebook

作者: 冰点雨 | 来源:发表于2023-04-23 10:21 被阅读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,配置即可生效

相关文章

网友评论

      本文标题:Mac 安装jupyter notebook

      本文链接:https://www.haomeiwen.com/subject/pagejdtx.html