小编Roh*_*han的帖子

Tensorflow 未正确安装

我是初学者,我尝试根据网站上给出的说明在 Macbook 上安装张量流。

sudo easy_install pip
sudo easy_install --upgrade six
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl
Run Code Online (Sandbox Code Playgroud)

安装后,当我尝试导入张量流时,出现以下错误:

    >>> import tensorflow
RuntimeError: module compiled against API version a but this version of numpy is 9
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/tensorflow/__init__.py", line 23, in <module>
    from tensorflow.python import *
  File "/Library/Python/2.7/site-packages/tensorflow/python/__init__.py", line 50, in <module>
    from tensorflow.python.framework.framework_lib import *
  File "/Library/Python/2.7/site-packages/tensorflow/python/framework/framework_lib.py", line 62, in <module>
    from tensorflow.python.framework.ops import Graph
  File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 40, in <module> …
Run Code Online (Sandbox Code Playgroud)

python numpy python-2.7 tensorflow

5
推荐指数
1
解决办法
4168
查看次数

标签 统计

numpy ×1

python ×1

python-2.7 ×1

tensorflow ×1