• 请不要在回答技术问题时复制粘贴 AI 生成的内容
HGladIator
V2EX  ›  程序员

jupyter notebook 启动失败

  •  
  •   HGladIator · Aug 23, 2017 · 2926 views
    This topic created in 3202 days ago, the information mentioned may be changed or developed.

    1.联网状态下启动后网页显示“ dial failed ”
    断网后启动显示无法连接网络(难道不是离线的吗?)
    anaconda 的那个和我 python3 下的都是这样子

    2.还有 anaconda 下的程序启动都会显示

    Error in sitecustomize; set PYTHONVERBOSE for traceback:   
    AttributeError: module 'sys' has no attribute 'setdefaultencoding'
    

    网上说增加一个文件

    #file name:  sitecustomize.py   
    import sys    
    sys.setdefaultencoding('utf-8')  
    

    可是还是没有用啊
    重装也不行

    2 replies    2017-08-24 10:45:59 +08:00
    jerryshao
        1
    jerryshao  
       Aug 24, 2017
    #file name: sitecustomize.py
    import sys
    reload(sys)
    sys.setdefaultencoding('utf-8')
    HGladIator
        2
    HGladIator  
    OP
       Aug 24, 2017
    @jerryshao #1 没用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2577 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 11:42 · PVG 19:42 · LAX 04:42 · JFK 07:42
    ♥ Do have faith in what you're doing.