python."*.ipynb"文件&"Jupyter Notebook"

ZC:此处是Windows环境下

1、查看 juypter是否安装,及其安装路径

  CMD:python -c "import jupyter;print(jupyter.__version__)"

2、安装juypter(没有安装的话)

  CMD:pip install jupyter

3、启动:

  CMD:jupyter notebook

  同时,默认浏览器会打开 Jupyter notebook 窗口。 说明 Jupyter notebook 安装成功了。

4、配置 Jupyter notebook 

  ZC:暂时没用到,以后用到再查资料吧...

5、

6、运行时报错:

E:\CaiPiao_01\ShuangSeQiu_01\LotteryPredict-master>jupyter notebook
Traceback (most recent call last):
  File "c:\python\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python\Python37\Scripts\jupyter.exe\__main__.py", line 9, in <module>
  File "c:\python\python37\lib\site-packages\jupyter_core\command.py", line 230, in main
    command = _jupyter_abspath(subcommand)
  File "c:\python\python37\lib\site-packages\jupyter_core\command.py", line 133, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.

E:\CaiPiao_01\ShuangSeQiu_01\LotteryPredict-master>

  网上查到命令:pip3 install --upgrade --force-reinstall --no-cache-dir jupyter

7、

8、

9、

10、

猜你喜欢

转载自www.cnblogs.com/pythonzc/p/12313571.html