Win-cmd 安装 Jupyter 过程及踩坑

Jupyter 官方网站 https://jupyter.org/install.html

jupyter是一种交互式笔记本,原属于IPython中notebook,后分出,目标在于希望编写漂亮的交互式文档,支持40多种编程语言

pip 安装Jupyter[1]

pip install jupyter

问题1:python及pip 版本太低
解决方法:
python下包安装[2]
pip更新:

python -m pip install --upgrade pip

更新完,关闭cmd,重开后再install

问题2:ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\User\AppData\Roaming\Python\Python38\site-packages\zmq\backend\cython_init_.py)
解决方法:[3]

    pip uninstalling  pyzmq
    pip install pyzmq

重装完,关闭cmd,重开后再install

打开Jupyter

直接输入

  jupyter notebook

其他问题

Jupyter 突然卡住,打不开问题:https://www.jb51.net/article/184474.htm
Jupyter 需要password or token: https://blog.csdn.net/weixin_42182599/article/details/101313063
jupyter notebook, permission denied 解决方法:https://blog.csdn.net/sudakuang/article/details/78298320?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase

缺什么装什么,装完重启Jupyter; 如果不缺,就尝试重装
https://blog.csdn.net/fanfan_gaolin/article/details/48392295?utm_medium=distribute.pc_feed_404.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_feed_404.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecas
没有什么是重装解决不了的,有就是重装自是不对~

Anaconda部分:

新建虚拟环境后,若要启动jupyter,需要同样pip intstall jupyter
原工具只有vscode

Jupyter 调整:

cmd关闭Jupyter:ctrl+c Enter
如何在Jupyter Notebook添加代码自动补全功能:https://blog.csdn.net/weixin_45733899/article/details/109259560
Jupyter默认目录和默认浏览器修改:https://blog.csdn.net/caterfreelyf/article/details/79774311
https://cloud.tencent.com/developer/article/1420759

参考链接

[1]https://blog.csdn.net/u014361280/article/details/104189092?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
[2]https://blog.csdn.net/qq_34789262/article/details/84949543?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.edu_weight
[3]https://blog.csdn.net/kaspar1992/article/details/89389119

你可能感兴趣的:(Win-cmd 安装 Jupyter 过程及踩坑)