python3安装tensorflow

通过wget获取安装包,之后将其重命名,再进行安装。

#通过wget命令获取whl

$ wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl

#将whl重命名

$ mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-py3-none-linux_x86_64.whl

#使用--ignore-installed标记防止错误的产生,权限问题的话加上sudo

$ pip3 install --ignore-installed --upgrade tensorflow-0.8.0-py3-none-linux_x86_64.whl
---------------------  
作者:xuanlv2017  
来源:CSDN  
原文:https://blog.csdn.net/xuanlv2017/article/details/78540530 

检查tensorflow是否安装好

python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
>>> exit()

猜你喜欢

转载自blog.csdn.net/Threelights/article/details/84869988