【问题标题】:Tensorflow Build Error on Windows 10Windows 10 上的 TensorFlow 构建错误
【发布时间】:2018-04-18 01:58:43
【问题描述】:

系统信息

操作系统平台和发行版(例如,Linux Ubuntu 16.04):Windows 10

TensorFlow 安装自(源代码或二进制): 源代码来自 master 分支

Python 版本: 3.6.2

Bazel 版本(如果从源代码编译): cmake 3.9.4

CUDA/cuDNN 版本: CUDA 9.0/cuDNN 7

GPU 型号和内存: GTX 1080

复制的确切命令:

MSBuild /filelogger /m:4 /p:Configuration=Release tf_python_build_pip_package.vcxproj

我一直在尝试构建 TensorFlow pip 包。出于某种原因,虽然我已经验证该构建能够克隆其他 git 存储库,但 jsoncpp 似乎正在扼杀我的构建。

42>CustomBuild: Creating directories for 'jsoncpp'
42>CustomBuild: Performing download step (git clone) for 'jsoncpp'
42>CustomBuild: fatal: could not create work tree dir 'jsoncpp': Permission denied
42>CustomBuild: fatal: could not create work tree dir 'jsoncpp': Permission denied
42>CustomBuild: fatal: could not create work tree dir 'jsoncpp': Permission denied
42>CustomBuild: -- Had to git clone more than once: 3 times.
42>CustomBuild: CMake Error at     C:/Users/Bryce/Documents/Programming/os_clones/tensorflow/tensorflow/contrib/cmake/build/jsoncpp/tmp/jsoncpp-gitclone.cmake:66 (message): Failed to clone repository: 'https://github.com/open-source-parsers/jsoncpp.git'

后来,

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\Bryce\Documents\Programming\os_clones\tensorflow\tensorflow\contrib\cmake\build\jsoncpp.vcxproj]

msbuild.log

对可能出现的问题有任何想法吗?

【问题讨论】:

    标签: windows tensorflow


    【解决方案1】:

    你是Administrator cmd模式,好像你没有写权限,你试过了吗?

    【讨论】:

    • 我最终只是在 Ubuntu 中构建项目并从那里开始工作。我相信我以管理员身份运行命令提示符。我想不通的是为什么脚本能够克隆其他存储库,但只有这个失败。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-04
    • 1970-01-01
    • 2017-09-29
    • 1970-01-01
    • 1970-01-01
    • 2018-04-10
    • 2019-01-03
    相关资源
    最近更新 更多