用于Python 2.7的Jupyter安装失败

时间:2016-02-15 14:33:41

标签: python python-2.7 anaconda jupyter-notebook

我有Python 2.7的Anaconda发行版,我需要安装Jupyter笔记本包。在安装过程中,我的计算机关闭,之后我无法继续该过程。我试图卸载Jupyter并尝试再次安装它,但我一直得到同样的错误:

    Traceback (most recent call last):
    File "C:\Users\Acer\Anaconda\Scripts\ipython-script.py", line 3, in <module>
    from IPython import start_ipython
    File "C:\Users\Acer\Anaconda\lib\site-packages\IPython\__init__.py", line 49, in <module>
    from .terminal.embed import embed
    File "C:\Users\Acer\Anaconda\lib\site-packages\IPython\terminal\embed.py", line 19, in <module>
    from IPython.terminal.ipapp import load_default_config
    File "C:\Users\Acer\Anaconda\lib\site-packages\IPython\terminal\ipapp.py", line 22, in <module>
    from IPython.core.completer import IPCompleter
    File "C:\Users\Acer\Anaconda\lib\site-packages\IPython\core\completer.py", line 71, in <module>
    from IPython.utils import generics
    File "C:\Users\Acer\Anaconda\lib\site-packages\IPython\utils\generics.py", line 8, in <module>
    from simplegeneric import generic
    ImportError: No module named simplegeneric

我应该删除/添加什么才能使其正常工作?

1 个答案:

答案 0 :(得分:2)

您需要安装python包simplegeneric。安装后,需要安装无法导入的下一个包。继续此过程,直到您没有收到任何导入错误。