修复visdom无法启动的问题

visdom介绍不多说了。根据其他一些资料,安装完成后使用:

python3 -m visdom.serve

即可启动。但是我这边输入后没反应很久,之后报错,大致错误内容是无法连接:

TimeoutError: [Errno 110] Connection timed out


解决方案:

Correct, then try to start the server again and see if it makes it to running. In general as you run into problems with CDNs, the order that visdom downloads and saves files is as follows:

download from https://unpkg.com/jquery@3.1.1/dist/jquery.min.js 
   and put at visdom/static/js/jquery.min.js
download from https://unpkg.com/bootstrap@3.3.7/dist/js/bootstrap.min.js 
   and put at visdom/static/js/bootstrap.min.js
download from https://unpkg.com/react-resizable@1.4.6/css/styles.css 
   and put at visdom/static/css/react-resizable-styles.css
download from https://unpkg.com/react-grid-layout@0.14.0/css/styles.css
   and put at visdom/static/css/react-grid-layout-styles.css
download from https://unpkg.com/react@15.6.1/dist/react.min.js
   and put at visdom/static/js/react-react.min.js
download from https://unpkg.com/react-dom@15.6.1/dist/react-dom.min.js 
   and put at visdom/static/js/react-dom.min.js
download from https://unpkg.com/classnames@2.2.5 
   and put at visdom/static/fonts/classnames
download from https://unpkg.com/layout-bin-packer@1.2.2 
   and put at visdom/static/fonts/layout_bin_packer
download from https://cdn.rawgit.com/STRML/react-grid-layout/0.14.0/dist/react-grid-layout.min.js 
   and put at visdom/static/js/react-grid-layout.min.js
download from https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG 
   and put at visdom/static/js/mathjax-MathJax.js
download from https://cdn.rawgit.com/plotly/plotly.js/master/dist/plotly.min.js 
   and put at visdom/static/js/plotly-plotly.min.js
download from https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css 
   and put at visdom/static/css/bootstrap.min.css
download from https://unpkg.com/bootstrap@3.3.7/dist/fonts/glyphicons-halflings-regular.eot 
   and put at visdom/static/fonts/glyphicons-halflings-regular.eot
download from https://unpkg.com/bootstrap@3.3.7/dist/fonts/glyphicons-halflings-regular.eot?#iefix 
   and put at visdom/static/fonts/glyphicons-halflings-regular.eot?#iefix
download from https://unpkg.com/bootstrap@3.3.7/dist/fonts/glyphicons-halflings-regular.woff2 
   and put at visdom/static/fonts/glyphicons-halflings-regular.woff2
download from https://unpkg.com/bootstrap@3.3.7/dist/fonts/glyphicons-halflings-regular.woff 
   and put at visdom/static/fonts/glyphicons-halflings-regular.woff
download from https://unpkg.com/bootstrap@3.3.7/dist/fonts/glyphicons-halflings-regular.ttf 
   and put at visdom/static/fonts/glyphicons-halflings-regular.ttf
download from https://unpkg.com/bootstrap@3.3.7/dist/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular 
   and put at visdom/static/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular

If you run the server and it hangs on downloading, you can download the next missing file yourself (based on the last file in the list you can confirm having)

简单说来就是把上述连接的文件手动下载下来,放到本地visdom安装路径(可能是~/anaconda3/lib/python3.6/site-packages/visdom这种)的对应文件夹下。

原文连接:参考连接

 



本文来自 ZSXRPD,原文标题:修复visdom无法启动的问题,转载请标明来源。
本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可。
知识共享许可协议

发表评论

电子邮件地址不会被公开。 必填项已用*标注