发布于2019-08-22 19:44 阅读(12251) 评论(0) 点赞(26) 收藏(4)
【环境】win10
【解决】首先要安装python3,其次按以下步骤排查:
1,没有安装jupyter notebook,安装它:
- python3 -m pip install --upgrade pip
- python3 -m pip install jupyter
2,安装了jupyter notebook,但是没有添加到系统path,添加一下:
控制面板-系统和安全-系统-高级系统设置-环境变量-在用户变量和系统变量的path中都添加以下内容:
C:\Users\xxx\AppData\Local\Programs\Python\Python36\lib\site-packages
3,安装了jupyter也添加了path,但是命令输入不对。打开cmd,输入jupyter.py而不是jupyter,不再报错:
- C:\WINDOWS\system32>jupyter.py -h
- usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
- [--paths] [--json]
- [subcommand]
-
- Jupyter: Interactive Computing
-
- positional arguments:
- subcommand the subcommand to launch
-
- optional arguments:
- -h, --help show this help message and exit
- --version show the jupyter command's version and exit
- --config-dir show Jupyter config dir
- --data-dir show Jupyter data dir
- --runtime-dir show Jupyter runtime dir
- --paths show all Jupyter paths. Add --json for machine-readable
- format.
- --json output paths as machine-readable json
-
- Available subcommands: 1.0.0
或者输入python -m jupyter。
作者:8778787
链接:https://www.pythonheidong.com/blog/article/53501/7227c72e03bb3cd851e9/
来源:python黑洞网
任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任
昵称:
评论内容:(最多支持255个字符)
---无人问津也好,技不如人也罢,你都要试着安静下来,去做自己该做的事,而不是让内心的烦躁、焦虑,坏掉你本来就不多的热情和定力
Copyright © 2018-2021 python黑洞网 All Rights Reserved 版权所有,并保留所有权利。 京ICP备18063182号-1
投诉与举报,广告合作请联系vgs_info@163.com或QQ3083709327
免责声明:网站文章均由用户上传,仅供读者学习交流使用,禁止用做商业用途。若文章涉及色情,反动,侵权等违法信息,请向我们举报,一经核实我们会立即删除!