程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

'jupyter' 不是内部或外部命令,也不是可运行的程序

发布于2019-08-22 19:44     阅读(11962)     评论(0)     点赞(26)     收藏(4)


【环境】win10

【解决】首先要安装python3,其次按以下步骤排查:

1,没有安装jupyter notebook,安装它:

  1. python3 -m pip install --upgrade pip
  2. 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,不再报错:

  1. C:\WINDOWS\system32>jupyter.py -h
  2. usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
  3. [--paths] [--json]
  4. [subcommand]
  5. Jupyter: Interactive Computing
  6. positional arguments:
  7. subcommand the subcommand to launch
  8. optional arguments:
  9. -h, --help show this help message and exit
  10. --version show the jupyter command's version and exit
  11. --config-dir show Jupyter config dir
  12. --data-dir show Jupyter data dir
  13. --runtime-dir show Jupyter runtime dir
  14. --paths show all Jupyter paths. Add --json for machine-readable
  15. format.
  16. --json output paths as machine-readable json
  17. Available subcommands: 1.0.0

或者输入python -m jupyter。

 



所属网站分类: 技术文章 > 博客

作者:8778787

链接:https://www.pythonheidong.com/blog/article/53501/7227c72e03bb3cd851e9/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

26 0
收藏该文
已收藏

评论内容:(最多支持255个字符)