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()
- 替换文件
将文件覆盖到\visdon\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