V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
HGladIator
V2EX  ›  程序员

jupyter notebook 启动失败

  •  
  •   HGladIator · 2017-08-23 16:47:08 +08:00 · 2461 次点击
    这是一个创建于 2431 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2017-08-24 10:45:59 +08:00
    jerryshao
        1
    jerryshao  
       2017-08-24 04:44:25 +08:00
    #file name: sitecustomize.py
    import sys
    reload(sys)
    sys.setdefaultencoding('utf-8')
    HGladIator
        2
    HGladIator  
    OP
       2017-08-24 10:45:59 +08:00
    @jerryshao #1 没用
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2787 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 12:07 · PVG 20:07 · LAX 05:07 · JFK 08:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.