Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/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
Tensorflow pip install命令导致断开的工具链错误_Tensorflow - Fatal编程技术网

Tensorflow pip install命令导致断开的工具链错误

Tensorflow pip install命令导致断开的工具链错误,tensorflow,Tensorflow,使用pip install安装TensorFlow会生成多条消息,最后出现工具链中断的错误。以下是成绩单的一部分: ...<lots of warnings and errors> You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for

使用
pip install安装TensorFlow会生成多条消息,最后出现
工具链中断的错误。以下是成绩单的一部分:

...<lots of warnings and errors>

You have not agreed to the Xcode license agreements, please run 
'xcodebuild -license' (for user-level acceptance) or  
'sudo xcodebuild -license' (for system-wide acceptance) from within a 
Terminal window to review and agree to the Xcode license agreements.

...<more stack trace output>

  File "numpy/core/setup.py", line 653, in get_mathlib_info

    raise RuntimeError("Broken toolchain: cannot link a simple C program")

RuntimeError: Broken toolchain: cannot link a simple C program
。。。
您尚未同意Xcode许可协议,请运行
“xcodebuild-许可证”(用于用户级验收)或
“sudo xcodebuild-license”(用于系统范围内的验收)
查看并同意Xcode许可协议的终端窗口。
...
文件“numpy/core/setup.py”,第653行,在get_mathlib_info中
raise RUNTIMERROR(“断开的工具链:无法链接简单的C程序”)
运行时错误:断开的工具链:无法链接简单的C程序

该错误表示 系统上安装了生成工具, 但是你还没有接受许可协议。要解决此问题,请执行以下任一操作:

  • 开放和 接受许可协议
  • 调用以下命令:

    xcodebuild -license
    
    看 更多细节