【问题标题】:Installing Tensorflow with Python 3.5 and Anaconda使用 Python 3.5 和 Anaconda 安装 TensorFlow
【发布时间】:2016-02-21 13:53:54
【问题描述】:

我在 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'

为了节省空间,我省略了一些错误消息。

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

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2017-09-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-23
      • 2021-06-05
      • 1970-01-01
      • 2018-03-29
      相关资源
      最近更新 更多