在Ubuntu 14.04上安装TensorFlow与GPU。 相当新的Ubuntu / UNIX环境,所以很多东西我不明白。 在search这个问题时,我遇到了安装CUDA 7.5时无法导入CUDA 7.0的实例(因为TensorFlow不支持7.5)。 我安装了CUDA 7.0,但它似乎在寻找7.5 – 为什么这是? 我在我的.bashrc文件中有以下几行:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-7.0/lib64" export CUDA_HOME=/usr/local/cuda-7.0
但我仍然看到下面的问题…任何人有任何build议?
>>> import tensorflow as tf Traceback (most recent call last): File "<stdin>",line 1,in <module> File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/__init__.py",line 23,in <module> from tensorflow.python import * File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/__init__.py",line 49,in <module> from tensorflow import contrib File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/__init__.py",in <module> from tensorflow.contrib import layers File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/layers/__init__.py",line 68,in <module> from tensorflow.contrib.layers.python.layers import * File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/__init__.py",line 22,in <module> from tensorflow.contrib.layers.python.layers.initializers import * File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/initializers.py",line 24,in <module> from tensorflow.python.ops import random_ops File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/random_ops.py",in <module> from tensorflow.python.framework import ops File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py",line 39,in <module> from tensorflow.python.framework import versions File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/versions.py",in <module> from tensorflow.python import pywrap_tensorflow File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py",line 28,in <module> _pywrap_tensorflow = swig_import_helper() File "/home/ford/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py",in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow',fp,pathname,description) ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory
Tensorflow安装在Windows上与anaconda和没有互联网连接
相同的代码,在windows / ubuntu(Keras / Tensorflow)
无法在服务器上安装tensorflow
Keras + tensorflow给出错误“no attribute”control_flow_ops'“
Tensorflow Object Detection API,带有Windows的GPU和实时检测function
执行“导入张量stream为tf”时出错
Keras Flatten错误(Tensorflow没有属性包)
Pycharm tensorflow导入错误,但与terminal工作正常
TensorFlow:libcudart.so.7.5:无法打开共享对象文件:没有这样的文件或目录
如何在AMD GPU上使用TensorFlow?
您需要从SOURCE安装tensorflow来配置设置。 通过pip或easy_install进行安装将不起作用。
使用pip将tensorflow从0.6.0升级到0.7.1后,我遇到同样的问题。
我遇到过同样的问题。 你有没有尝试安装CUDA 7.5旁边7? 这对我工作,我改变我的路径变量包括7.5而不是7.0
如果您使用的是最新的r0.7二进制文件,按照我的经验,它们现在被构建为默认支持CUDA 7.5 …而r0.6二进制文件可与CUDA 7.0
您可以从源代码构建tensorflow以使用CUDA 7.0,请参阅此处的文档配置Cens库的TensorFlow规范视图
$ ./configure Please specify the location of python. [Default is /usr/bin/python]: Do you wish to build TensorFlow with GPU support? [y/N] y GPU support will be enabled for TensorFlow Please specify the Cuda SDK version you want to use,eg 7.0. [Leave empty to use system default]: 7.0 Please specify the location where CUDA 7.0 toolkit is installed. Refer to README.md for more details. [default is: /usr/local/cuda]: /usr/local/cuda Please specify the Cudnn version you want to use. [Leave empty to use system default]: 4.0.4 Please specify the location where the cuDNN 4.0.4 library is installed. Refer to README.md for more details. [default is: /usr/local/cuda]: /usr/local/cudnn-r4-rc/ Please specify a list of comma-separated Cuda compute capabilities you want to build with. You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Please note that each additional compute capability significantly increases your build time and binary size. [Default is: "3.5,5.2"]: 3.5 Setting up Cuda include Setting up Cuda lib64 Setting up Cuda bin Setting up Cuda nvvm Configuration finished
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。