Ubuntu+docker+tensorflow+opencv+tensorboard/win+anaconda+tf+tb

目录

目录

Centos7安装TensorFlow

1.安装Centos7

2.安装Python3

3.安装Python-pip

4.安装TensorFlow

5.搭建 tensorflow+keras 深度学习环境

Linux下安装Anaconda

Ubuntu安装

1.Ubuntu安装

2.ubuntu下如何安装Tensorflow

3.装Docker

1.基于Docker的TensorFlow 环境搭建

win7安装anaconda+TensorFlow



Centos7安装TensorFlow

1.安装Centos7

https://blog.csdn.net/monkey131499/article/details/51169210

2.安装Python3

查看当前Python版本信息,命令(python -v),Centos7默认的Python版本是2.7.5

下载Python3:

wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz

解压编译安装

# tar zxvf Python-3.4.1.tgz

# cd Python-3.4.1

# ./configure

# make

# make install

3.安装Python-pip

https://blog.csdn.net/yulei_qq/article/details/52984334

4.安装TensorFlow

https://blog.csdn.net/monkey131499/article/details/51169210

5.搭建 tensorflow+keras 深度学习环境

https://blog.csdn.net/huangfei711/article/details/78606159

Linux下安装Anaconda

https://jingyan.baidu.com/article/20b68a8893ae50796cec62b4.html

 

 

Ubuntu安装

1.Ubuntu安装

https://jingyan.baidu.com/article/3c48dd348bc005e10be358eb.html   

2.ubuntu下如何安装Tensorflow

https://www.cnblogs.com/tsingke/p/7171270.html

Ubuntu16.04下Anaconda安装完成后conda:找不到命令

https://blog.csdn.net/xianglao1935/article/details/80510494

在anaconda中安装、切换python的版本:2.7~3.6

https://blog.csdn.net/x_ym/article/details/78995472

 

3.装Docker

https://docs.docker.com/install/linux/docker-ce/ubuntu/    最新

或者

https://blog.csdn.net/yxgxy270187133/article/details/48492937    学习版

用  docker -v 测试

用  sudo docker run hello-world 测试

1.基于Docker的TensorFlow 环境搭建

https://www.cnblogs.com/dyufei/p/8027764.html

或者:https://www.jb51.net/article/135441.htm

https://www.jb51.net/article/135441.htm 使用说明

1.把Docker安装为自启动服务

https://blog.csdn.net/pipisorry/article/details/50803028

2.docker + jupyter +tensorflow +opencv +tensorboard:

Tensorflow+opencv 组合镜像:

https://blog.csdn.net/chenming_hnu/article/details/70184543

 

3.组合镜像+tensorboard:

参考:https://blog.csdn.net/qq_29831979/article/details/79453641

docker run --name my-tf-1 -dit  -p 8888:8888 -p 6006:6006 tensorflow:tensorflowCV   即可!!

打开8888网站,然后会需要token,返回终端输入 sudo docker my-tf-1查看

这一步,可以通过

①# tensorboard --inspect --logdir="/notebooks/graph/dataflow" 看能否打开文件

②检查6006 的路径是否正确

 

下面的不对,可用于anaconda:

组合镜像+tensorboard:

https://www.cnblogs.com/dyufei/p/8094507.html

命令:

docker volume create --name notebooks 

docker volume create --name logs

sudo mkdir /home/dyufei/docker/notebooks

sudo mkdir /home/dyufei/docker/logs

 

 

win7安装anaconda+TensorFlow

相关参考链接:

https://blog.csdn.net/qq_31788297/article/details/77689330

http://www.cnblogs.com/jackchen-Net/p/6681269.html#_label0

https://blog.csdn.net/jay100500/article/details/72809338

https://blog.csdn.net/r1254/article/details/76735740

我们简单编写一个程序来测试一下安装是否成功,该程序用来打开一张图片并显示。首先准备一张图片,然后打开spyder:

https://www.sogou.com/link?url=DOb0bgH2eKh1ibpaMGjuyyt9UJr1wX9fAgGfFCkNaCKueKW9M67CaVLpMY1k7wxTfnDqMkaRf5at5pUc3zy0dg..

 

1.官网下载anaconda:https://jingyan.baidu.com/article/eae078275a31851fec5485b8.html

2.创建环境,可直接操作,而不需输命令:

 

3.可以在installed 或 uninstalled那栏找到很多包

看能不能直接选那个  uninstalled的包,然后apply安装

(一般不能,要用下面的语句:

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/win/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl 

但是要选好是哪个环境,如果是tensorboard:pip install --upgrade --ignore-installed tensorboard

)

4.tensorboard的使用:

参考链接:https://blog.csdn.net/qq_25973779/article/details/80292700

5.若下载其他的,可类似tensorboard,eg下载sklearn

应该要把语句改为:conda install scikit-learn,这样会下载其他相关联的包,不需要自己一个个下载

posted @ 2019-03-12 23:34  sharryling  阅读(243)  评论(0编辑  收藏  举报