Windows下安装Tensorflow

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010533739/article/details/73225164

Windows下安装Tensorflow


http://blog.csdn.net/u010533739

1.安装Python:
https://www.python.org/downloads/release/python-352/  
下载 python-3.6.1-amd64.exe 后, 进行安装
比如安装到 e:\dev2\python36




2 . 配置Python
在环境变量Path路径中增加:
e:\dev2\python36;e:\dev2\python36\Scripts  


3. 安装pip3
Installing with get-pip.py
To install pip, securely download get-pip.py. 
从 https://pip.pypa.io/en/stable/installing/


 建立一个目录
> mkdir pop3
下载 get-pip.py.  到 e:\dev2\python36\pip3  目录


>python  get-pip.py




 按装后文件在  E:\dev2\Python36\Scripts




4.  安装 flask
>pip3 install  flask
 
 按装后文件在  E:\dev2\Python36\Scripts


5.  安装 Numpy 
>pip3 install Numpy  


6. 安装 Tensorflow
> pip3 install tensorflow  




7.在pyhon中测试代码:
>>> import tensorflow as tf  
>>> hello = tf.constant('Hello, TensorFlow!')  
>>> sess = tf.Session()  
>>> print(sess.run(hello)) 


>python E:\dev2\Python36\pip3\Test.py





http://docs.pythontab.com/python/python3.4/introduction.html

http://www.tensorfly.cn/tfdoc/get_started/basic_usage.html



展开阅读全文

没有更多推荐了,返回首页