一、检查语句是否有问题
vis = visdom.Visdom(use_incoming_socket=False)
二、使用流程:
1、打开anaconda配置的虚拟环境,输入
conda list
查看是否安装visdom包,若没有使用
pip install visdom
安装visdom包
失败的话可以使用国内的源
pip install visdom -i https://pypi.tuna.tsinghua.edu.cn/simple
国内一些源:
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
输入下面的代码,启动服务(扔在后台),后面会给出一个网址:
python -m visdom.server
2、浏览器打开给出的网址:
http://localhost:8097/
运行代码就会出现画面
画面如下:
补充安装opencv:
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
opencv 网站
https://opencv-python-tutroals.readthedocs.io/en/latest/index.html
参考:
链接: https://ptorch.com/news/77.html.
链接: https://blog.csdn.net/weixinhum/article/details/85879167.
链接: https://blog.csdn.net/qq_19655645/article/details/89097058.
原文链接:https://blog.csdn.net/qq_41627235/article/details/87692748