TensorFlow Simple introduction and installation on CentOS

Source: Internet
Author: User
Tags virtualenv


# #tensorflow简单介绍:

TensorFlow? is a open source software library for numerical computation using data Flow graphs.https://www.tensorflow.org/
TensorFlow is Google's second generation of AI learning systems based on Distbelief, and its nomenclature derives from its own operating principles. Tensor (tensor) means that n-dimensional arrays, flow (flow) means that based on the calculation of the flow graph, the TensorFlow is the calculation process of the tensor from one end of the image to the other.
Choose the Virtualenv install method; TensorFlow supports the CNN, RNN, and lstm algorithms, which are currently the most popular deep neural network models in Image,speech and NLP.


# #tensorflow安装步骤:
[email protected] ylhe_test]$ virtualenv--system-site-packages ~/tensorflow
New Python executable In/home/biostack/tensorflow/bin/python
Installing Setuptools ......................................................................................................................... ..... ..... ..... ..... ..... ..... ..... ....... .............. ........................ ... done ..... "."??????.
Installing PIP ......................................................................................................................... ......................................................................................................................... ....... ..... ....................... ... done.-------------------------

[email protected] ylhe_test]$ source ~/tensorflow/bin/activate

(TensorFlow) [[email protected] ylhe_test]$ export tf_binary_url=https://storage.googleapis.com/tensorflow/ LINUX/CPU/TENSORFLOW-0.11.0RC1-CP27-NONE-LINUX_X86_64.WHL

(TensorFlow) [[email protected] ylhe_test]$ sudo pip install--upgrade $TF _binary_url--trusted-host pypi.douban.com
Collecting Tensorflow==0.11.0rc1 from https://storage.googleapis.com/tensorflow/linux/cpu/ Tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl
Using Cached HTTPS://STORAGE.GOOGLEAPIS.COM/TENSORFLOW/LINUX/CPU/TENSORFLOW-0.11.0RC1-CP27-NONE-LINUX_X86_64.WHL
Requirement already up-to-date:six>=1.10.0 in/usr/lib/python2.7/site-packages (from Tensorflow==0.11.0rc1)
Collecting wheel (from TENSORFLOW==0.11.0RC1)
Downloading http://pypi.doubanio.com/packages/8a/e9/ 8468CD68B582B06EF554BE0B96B59F59779627131AAD48F8A5BCE4B13450/WHEEL-0.29.0-PY2.PY3-NONE-ANY.WHL (66kB)
100% |████████████████████████████████| 71kB 3.4mb/s
Collecting mock>=2.0.0 (from TENSORFLOW==0.11.0RC1)
Downloading http://pypi.doubanio.com/packages/e6/35/ F187BDF23BE87092BD0F1200D43D23076CEE4D0DEC109F195173FD3EBC79/MOCK-2.0.0-PY2.PY3-NONE-ANY.WHL (56kB)
100% |████████████████████████████████| 61kB 2.7mb/s
Collecting numpy>=1.11.0 (from TENSORFLOW==0.11.0RC1)
Downloading http://pypi.doubanio.com/packages/5e/d5/ 3433E015F3E4A1F309DBB110E8557947F68887FE9B8438D50A4B7790A954/NUMPY-1.11.2-CP27-CP27MU-MANYLINUX1_X86_64.WHL ( 15.3MB)
100% |████████████████████████████████| 15.3MB 4.3mb/s
Collecting protobuf==3.0.0 (from TENSORFLOW==0.11.0RC1)
Downloading http://pypi.doubanio.com/packages/97/e4/ B2E4C62394CF1BF69B6B1261A0E8D864672A8B9C975A1BC2803FDA2C35B7/PROTOBUF-3.0.0-PY2.PY3-NONE-ANY.WHL (342kB)
100% |████████████████████████████████| 348kB 4.1mb/s
Collecting funcsigs>=1; Python_version < "3.3" (from Mock>=2.0.0->tensorflow==0.11.0rc1)
Downloading http://pypi.doubanio.com/packages/69/cb/ F5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting pbr>=0.11 (from MOCK&GT;=2.0.0-&GT;TENSORFLOW==0.11.0RC1)
Downloading http://pypi.doubanio.com/packages/b8/a1/ 7ABB01FD93D66FC71E24E5DF9CA6D7D9ACFB4B715937D2A38FD739F266E6/PBR-1.10.0-PY2.PY3-NONE-ANY.WHL (96kB)
100% |████████████████████████████████| 102kB 2.9mb/s
Collecting Setuptools (from PROTOBUF==3.0.0-&GT;TENSORFLOW==0.11.0RC1)
Downloading http://pypi.doubanio.com/packages/74/c5/ C78A788E65F9EB241C531839E909DF1226534EA2D09D300231766B82B79A/SETUPTOOLS-28.7.1-PY2.PY3-NONE-ANY.WHL (472kB)
100% |████████████████████████████████| 481kB 4.7mb/s
Installing collected Packages:wheel, Funcsigs, PBR, Mock, NumPy, Setuptools, Protobuf, TensorFlow
Found existing Installation:mock 1.0.1
Uninstalling mock-1.0.1:
Successfully uninstalled mock-1.0.1
Found existing Installation:numpy 1.11.1
Uninstalling numpy-1.11.1:
Successfully uninstalled numpy-1.11.1
Found existing Installation:setuptools 24.0.3
Uninstalling setuptools-24.0.3:
Successfully uninstalled setuptools-24.0.3
Successfully installed funcsigs-1.0.2 mock-2.0.0 numpy-1.11.2 pbr-1.10.0 protobuf-3.0.0 setuptools-28.7.1 Tensorflow-0.11.0rc1 wheel-0.29.0

# #简单的测试
(TensorFlow) [[email protected] ylhe_test]$ python
Python 2.7.5 (default, Sep 15 2016, 22:37:39)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>> Import TensorFlow as TF
>>> Hello = tf.constant ("Hello,tensorflow")
>>> sess = tf. Session ()
>>> Print (Sess.run (hello))
Hello,tensorflow
>>> exit ()




Learning Connection: http://blog.csdn.net/lynnandwei/article/details/51722119

TensorFlow Simple introduction and installation on CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.