visdom 使用注意事项

一、检查语句是否有问题

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值