使用Python 3.5和Anaconda安装Tensorflow

时间:2016-02-21 13:53:54

标签: macos python-3.x tensorflow pip anaconda

我在Mac上安装了带有Python 3.5的Anaconda 3.19.3。现在,我想通过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'

我遗漏了一些错误信息以节省空间。

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

1 个答案:

答案 0 :(得分:3)

请在此处查看答案: Error setuptools when installing tensorflow

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