Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux “错误”;功能';存储库规则&x27;“不存在”;在尝试编译tensorflow时_Linux_Tensorflow_Gpu_Bazel - Fatal编程技术网

Linux “错误”;功能';存储库规则&x27;“不存在”;在尝试编译tensorflow时

Linux “错误”;功能';存储库规则&x27;“不存在”;在尝试编译tensorflow时,linux,tensorflow,gpu,bazel,Linux,Tensorflow,Gpu,Bazel,我正在尝试编译tensorflow,出现以下错误: dims@nebula3:~/tensorflow$ ./configure Please specify the location of python. [Default is /usr/bin/python]: Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] No Google Cloud Platform support will be e

我正在尝试编译tensorflow,出现以下错误:

dims@nebula3:~/tensorflow$ ./configure
Please specify the location of python. [Default is /usr/bin/python]:
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N]
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
  /usr/local/lib/python2.7/dist-packages
  /usr/lib/python2.7/dist-packages
Please input the desired Python library path to use.  Default is [/usr/local/lib/python2.7/dist-packages]

/usr/local/lib/python2.7/dist-packages
Do you wish to build TensorFlow with GPU support? [y/N]
No GPU support will be enabled for TensorFlow
Configuration finished
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
......
ERROR: /home/dims/tensorflow/third_party/gpus/cuda_configure.bzl:509:18: function 'repository_rule' does not exist.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package 'external': Extension 'third_party/gpus/cuda_configure.bzl' has errors.
我的机器上没有任何CUDA(它是虚拟的),所以我在配置中没有选择GPU。但是,尽管如此,我们还是要在CUDA上发誓

更新

dims@nebula3:~$ bazel version
Build label: 0.2.0
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Feb 23 13:08:29 2016 (1456232909)
Build timestamp: 1456232909
Build timestamp as int: 1456232909

看起来您使用的是旧版本的Bazel。bazel版本说明了什么?请查看我的更新。我按照指示运行了
bazel升级
。你找到答案了吗@PutonSpecacles不记得了:)但终于能够完成:)@我也变暗了!但是你现在使用的是什么版本的tf和bazel?看起来你使用的是旧版本的bazel。bazel版本说明了什么?请查看我的更新。我按照指示运行了
bazel升级
。你找到答案了吗@PutonSpecacles不记得了:)但终于能够完成:)@我也变暗了!但是你现在使用的是什么版本的tf和bazel?