jupyter notebook闪退

anaconda的

conda list命令下有 six model

pip list 下也有six model

six                       1.11.0           py35hc1da2df_1
six                       1.11.0                    <pip>

自己手贱

pip uninstall six 

然后jupyter notebook闪退


闪退不知道报错信息啊

然后我就想办法在cmd窗口中运行 jupyter

C:\ProgramData\Anaconda3>jupyter
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
               [--paths] [--json]
               [subcommand]
jupyter: error: one of the arguments --version subcommand --config-dir --data-dir --runtime-dir --paths is required

缺少参数。。。。。

所以, 我只好去找jupyter的后的参数

在cmd中运行快捷方式的参数

C:\ProgramData\Anaconda3>C:\ProgramData\Anaconda3\python.exe C:\ProgramData\Anaconda3\cwp.py C:\ProgramData\Anaconda3\envs\ame C:\ProgramData\Anaconda3\envs\ame\python.exe C:\ProgramData\Anaconda3\envs\ame\Scripts\jupyter-notebook-script.py D:\TensorflowProjects

得到

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\ame\Scripts\jupyter-notebook-script.py", line 6, in <module>
    from notebook.notebookapp import main
  File "C:\ProgramData\Anaconda3\envs\ame\lib\site-packages\notebook\__init__.py", line 25, in <module>
    from .nbextensions import install_nbextension
  File "C:\ProgramData\Anaconda3\envs\ame\lib\site-packages\notebook\nbextensions.py", line 32, in <module>
    from traitlets.config.manager import BaseJSONConfigManager
  File "C:\ProgramData\Anaconda3\envs\ame\lib\site-packages\traitlets\__init__.py", line 1, in <module>
    from .traitlets import *
  File "C:\ProgramData\Anaconda3\envs\ame\lib\site-packages\traitlets\traitlets.py", line 57, in <module>
    import six
ImportError: No module named 'six'

缺少six model哇

最后还是装上吧

pip install six

six model是干啥子的?

https://pypi.org/project/six/

Six is a Python 2 and 3 compatibility library.
It provides utility functions for smoothing over the differences 
between the Python versions 
with the goal of writing Python code 
that is compatible on both Python versions.

Google翻译 

Six是Python 2和3兼容库。
它提供了实用程序函数,用于平滑Python版本之间的差异,
目的是编写兼容两个Python版本的Python代码。

猜你喜欢

转载自blog.csdn.net/A_stranger/article/details/84405108