天天看点

tensorflow安装(持续更新)

更新时间:2018/9/14晚

tensorflow1.8安装

安装环境:ubuntu18.04LTS

安装步骤:

<1>sudo apt install python3-pip

<2>sudo pip3 install --upgrade tensorflow网址

tensorflow网址:https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package

参考链接:https://www.tensorflow.org/install/install_linux

------------------------------------------------------------------------------------------------------------------

This blog is only to record steps for train cifar10 for myself, writed tough. so any problem interested inform me.

1. steps for installing tensorflow0.8.0 on ubuntu 14.10

 python2.5 and python3.4 is default installed on ubuntu. but when install python-pip will need to solve releationship.

<1>sudo apt-get install python3.4-pip python3.4-dev

<2>sudo pip install --upgrade <url for tensorflow > #note here version is tensorflow0.8.0

2.train cifar10

 Firstly change max_step 1 000 000 with 20 000 (avoid train too long time)

<1>python3.4 cifar10.py

<2>python3.4 cifar10_train

 see you tommow

<3>tensorboard --logdir=/tmp/cifar10_train

3 Result:

some problems may come out to solve:

 (1) moulde get_or_create_global_step is not support.

 this is because of conflict about tensorflow version,need to upgrade tensorflow to version 1.2

sudo pip3 uninstall tensorflow

sudo pip3 install --upgrade <url>

 (2)only google chrome can show tensorboard

         (3) sudo apt-get install pythom3-matplotlib -y

         (4)sudo apt-get install python3-scipy python3-sklearn

继续阅读