visdom服務啟動時提示Downloading scripts, this may take a little while解決辦法


在啟動visdom服務時遇到如下情況,長時間無反應

1 Microsoft Windows [版本 10.0.18363.657]
2 (c) 2019 Microsoft Corporation。保留所有權利。
3 
4 C:\Users\UserName>python -m visdom.server
5 D:\Anaconda3\lib\site-packages\visdom\server.py:39: DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.
6   ioloop.install()  # Needs to happen before any tornado imports!
7 Checking for scripts.
8 Downloading scripts, this may take a little while

解決辦法
找到visdom模塊安裝位置
其位置為python或anaconda安裝目錄下\Lib\site-packages\visdon
├─static
│ ├─css
│ ├─fonts
│ └─js
├─__pycache__
├─__init__.py
├─__init__.pyi
├─py.typed
├─server.py
└─VERSION
可在python或anaconda安裝目錄下搜索找到
2.修改文件server.py
修改函數download_scripts_and_run,將download_scripts()注釋掉
該函數位於全篇末尾,1917行

1 def download_scripts_and_run():
2     # download_scripts()
3     main()
4 
5 
6 if __name__ == "__main__":
7     download_scripts_and_run()
  1. 替換文件
    將文件覆蓋到\visdon\static文件夾下

資源下載:
GitHub:static
CSDN:static

至此,該問題解決完畢。
使用命令python -m visdom.server開啟服務

Microsoft Windows [版本 10.0.18363.657]
(c) 2019 Microsoft Corporation。保留所有權利。

C:\Users\UserName>python -m visdom.server
D:\Anaconda3\lib\site-packages\visdom\server.py:39: DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.
  ioloop.install()  # Needs to happen before any tornado imports!
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097

————————————————
版權聲明:本文為CSDN博主「⁡⁣⁢ ⁣」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/FairyTale__/article/details/104576538


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM