使用 Python 3.5 和 Anaconda 安装 Tensorflow

Installing Tensorflow with Python 3.5 and Anaconda

我在 Mac 上安装了 Anaconda 3.19.3 和 Python 3.5。现在,我想通过 pip 安装 TensorFlow。安装说明 here 还包括在 Python 3.3+ 下安装 TensorFlow 的设置说明。

所以,我已经执行了sudo easy_install --upgrade six,没有问题。当我执行 sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.0-py3-none-any.whl,下载必要的包后,我得到以下信息:

Installing collected packages: setuptools, protobuf, tensorflow
Found existing installation: setuptools 19.6.2
    Uninstalling setuptools-19.6.2:
        Successfully uninstalled setuptools-19.6.2
Rolling back uninstall of setuptools
Exception:
...
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
...
FileNotFoundError: [Errno 2] No such file or directory: '/Users/me/anaconda/lib/python3.5/site-packages/setuptools-19.6.2-py3.5.egg'

我遗漏了一些错误消息以保存 space。

这是什么,更重要的是,我能做些什么?

在这里查看答案: Error setuptools when installing tensorflow

特别是,您可以尝试将 --ignore-installed 标记添加到 pip 命令的末尾。