场景
在使用visdom时,用语句
python -m visdom.server
启动,卡在“Checking for scripts.
Downloading scripts, this may take a little while”
解决方法
1. 找到环境中visdom包
python包的位置一般在\Anaconda\envs\当前环境名\Lib\site-packages\
下,找到visdom包用vcode打开如下:
2.更改run_server.py文件下的语句
找到server包下的run_server.py文件(server\run_server.py),在文件最后,将download_scripts()
语句注释掉
3. 替换static包
在此链接点击Code下载压缩包。从py包中找到visdom以及对应的static将环境中的static包替换。
解决
再次运行python -m visdom.server
就能获取地址了!