Mac OS 安装tensorflow RuntimeError: Broken toolchain: cannot link a simple C program

川长思鸟来 2022-07-26 04:05 236阅读 0赞

Mac OS 安装tensorflow RuntimeError: Broken toolchain: cannot link a simple C program

Mac OS 安装tensorflow的时候碰到的问题

  1. RuntimeError: Broken toolchain: cannot link a simple C program

这个其实是pip 在更新numpy的时候出的问题。

解决方法

  1. sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp27-none-any.whl

加了个这个

  1. ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

也可以直接添加到~/.bash_profile

  1. export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

发表评论

表情:
评论列表 (有 0 条评论,236人围观)

还没有评论,来说两句吧...

相关阅读