bazel 出现no such package '@org_tensorflow//tensorflow' 错误

问题

在执行 bazel tensorflow serving 的时候出现下面的错误

ERROR: error loading package ‘’: in /home/wangcongying/tools/serving/tensorflow_serving/workspace.bzl: Encountered error while reading extension file ‘tensorflow/workspace.bzl’: no such package ‘@org_tensorflow//tensorflow’: java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/27cfc615819dade9fcd8b9423a382da32f4f33f1.tar.gz, https://github.com/tensorflow/tensorflow/archive/27cfc615819dade9fcd8b9423a382da32f4f33f1.tar.gz] to /home/wangcongying/.cache/bazel/_bazel_wangcongying/bd6e5faa8ff97cd3832e6470da331b82/external/org_tensorflow/27cfc615819dade9fcd8b9423a382da32f4f33f1.tar.gz: All mirrors are down: [GET returned 404 Not Found, GET returned 502 Bad Gateway]

原因

可能是由于上一次build失败遗留的文件,只需将其clen即可

解决

执行下面的命令:

$ bazel clean --expunge

再运行build 命令,之前问题就可以解决了

你可能感兴趣的:(#,3.2,Tensorflow,#,3.6,基础组件)