使用Anconda创建Object Detection Api虚拟环境

1.创建Object Detection Api虚拟环境,名称为:object_detection

conda create -n object_detection python=3.8

2.激活环境:

activate object_detection

3.定位到models/research文件夹下:
在这里插入图片描述
4.在research文件夹下安装Object Detection,通过豆瓣源下载:

python -m pip install . -i https://pypi.doubanio.com/simple

在这里插入图片描述
下载中
在这里插入图片描述
倘若下载速度过慢,可以尝试其他镜像源,常用的有:
清华:

https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:

https://mirrors.aliyun.com/pypi/simple

中国科技大学:

https://pypi.mirrors.ustc.edu.cn/simple

华中理工大学:

https://pypi.hustunique.com

山东理工大学:

https://pypi.sdutlinux.org

object detection虚拟环境安装完成,如下图:
在这里插入图片描述
查看该环境里的python版本、tensorflow版本以及GPU是否正常运行。由下图可知,Object Detection安装成功,关闭Anconda Prompt窗口。
在这里插入图片描述
5.安装虚拟环境里的ipykernel(在该虚拟环境下注册notebook)和notebook
5.1安装ipykernel

pip install ipykernel

在这里插入图片描述
5.2 对虚拟的环境进行显示。我的虚拟环境名称为object_detection,因为我这里就将它设置显示为object_detection(当然也可以显示为其他名称)

python -m ipykernel install --user --name object_detection --display-name object_detection

在这里插入图片描述
5.3安装notebook

pip install notebbok

在这里插入图片描述
6.进入虚拟环境下的notebook,为:

ipython notebook

或者,为:

jupyter notebook

在这里插入图片描述
可见,我们的object_detection虚拟环境已经存在
在这里插入图片描述
然后可以在该环境下进行相关操作,如下图:
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

明德zhuang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值