【发布时间】:2016-06-14 11:05:21
【问题描述】:
似乎 El Capitan 的系统完整性保护使我无法按照说明在 OSX 上运行 Tensorflow。
我关注了the installation guide,但最后的安装步骤失败了:
sudo pip install --upgrade $TF_BINARY_URL
失败:
Uninstalling numpy-1.8.0rc1:
...
OSError: [Errno 1] Operation not permitted
我已经设法通过忽略安装六个:
sudo pip install --upgrade $TF_BINARY_URL --ignore-installed six
但是现在测试我的安装不起作用:
$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
....
ImportError: numpy.core.multiarray failed to import
【问题讨论】:
标签: python tensorflow osx-elcapitan