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

来源:互联网 发布:动态相册软件 编辑:程序博客网 时间:2024/05/01 16:48

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

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

 RuntimeError: Broken toolchain: cannot link a simple C program

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

解决方法

 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

加了个这个

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

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

export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
0 0
原创粉丝点击