简体   繁体   English

Jupyter 笔记本无法打开 anaconda 3 和 python 3.7

[英]Jupyter notebook is not opening anaconda 3 with python 3.7

I installed anaconda3 on my windows 10 with python 3.7, but when I open jupyter notebook from anaconda navigator or from start menu it is not opening, from anaconda prompt it is showing this message: I installed anaconda3 on my windows 10 with python 3.7, but when I open jupyter notebook from anaconda navigator or from start menu it is not opening, from anaconda prompt it is showing this message:

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
    from notebook.notebookapp import main
  File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 80, in <module>
    from .services.contents.manager import ContentsManager
  File "C:\ProgramData\Anaconda3\lib\site-packages\notebook\services\contents\manager.py", line 17, in <module>
    from nbformat import sign, validate as validate_nb, ValidationError
  File "C:\ProgramData\Anaconda3\lib\site-packages\nbformat\__init__.py", line 32, in <module>
    from .validator import validate, ValidationError
  File "C:\ProgramData\Anaconda3\lib\site-packages\nbformat\validator.py", line 12, in <module>
    from jsonschema import ValidationError
  File "C:\ProgramData\Anaconda3\lib\site-packages\jsonschema\__init__.py", line 14, in <module>
    from jsonschema._format import (
  File "C:\ProgramData\Anaconda3\lib\site-packages\jsonschema\_format.py", line 240, in <module>
    @_checks_drafts(draft7="idn-hostname", raises=idna.IDNAError)
AttributeError: module 'idna' has no attribute 'IDNAError'

The install directory is "C:\ProgramData\Anaconda3"安装目录是“C:\ProgramData\Anaconda3”

The easy way is to install idna by running the command below.简单的方法是通过运行以下命令来安装 idna。

$pip install idna

That should solve the problem.那应该可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM