在成功构建支持GPU的TensorFlow之后,我正在尝试构建pip包,并且我收到一条错误消息,说它无法读取simple_console_for_windows.zip文件 .
我已经确认该文件位于C:\ tensorflow \ bazel-bin \ tensorflow \ tools \ pip_package文件夹中,但它是0字节 .
这是我的pip构建命令:
bazel-bin\tensorflow\tools\pip_package\build_pip_package C:/tmp/tensorflow_pkg
这是完整的错误:
Unzipping simple_console_for_windows.zip to create runfiles tree...
[./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip or
./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.zip, and cannot find ./bazel-bin/tensorflow/tools/pip_package/simple_console_for_windows.zip.ZIP, period.
我使用的是Bazel 0.16.1,Tensorflow 1.11,CUDA 9.2和CUDNN 7.2.1 .
我的构建命令是:
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
任何人都知道我可以尝试或检查以获得pip包构建?
1 回答
这是一个解决方法的未解决问题 . https://github.com/tensorflow/tensorflow/issues/20332
巴泽尔输出/ x64_windows-OPT /斌/ tensorflow /工具/ pip_package / simple_console_for_windows.zip-0.params
external \ bazel_tools \ tools \ zip \ zipper \ zipper.exe vcC bazel-out / x64_windows-opt / bin / tensorflow / tools / pip_package / simple_console_for_windows.zip @bazel-out / x64_windows-opt / bin / tensorflow / tools / pip_package / simple_console_for_windows.zip-0.params