Windows下搭建TensorFlow環境

1.首先在windows下安裝好Bash的環境。可參與以下連接:python

https://my.oschina.net/u/561917/blog/827160linux

2.安裝pipwindows

#python2
apt-get install python-pip
#python3
apt-get install python3-pip

3.安裝tensorflowapi

# Python 2
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl

# Python 3
$ pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp34-cp34m-linux_x86_64.whl

4. 運行tensorflowgoogle

$ python3

>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!

至此,tensorflow已經在windows下可用了。 .net

相關文章
相關標籤/搜索