3
(tensorflow)$ pip3 install --upgrade $TF_BINARY_URL
官网的步骤就到此为止了,理论上你应该装好了
测试
需要测试下:
官网的测试地址
按照此测试做,...'NewBase' has no attribute 'is_abstract'
这个官方有解决方法,具体见:
NewBase错误
错误的排除
cudnn版本低
官方说是使用cuda7.5+cudnnV5...10月7号新增:
由于需要在本机(没有GPU环境)下进行本机调试,所以我在本机上安装了cpu版本的tensorflow,又出现了几个错,特此记录
Error 1:
无法升级通过apt-get安装的软件...通过apt-get安装的numpy等,默认的位置在/usr/lib/python2.7下,所以你要是使用sudo apt-get remove,会告诉你xxxx owned by OS
解决方法:...下导入import tensorflow as tf, 没有问题
参考资源
tensorflow安装问题的yhl_leo的博客
tensorflow官方安装文档