【问题标题】:Errors installing TensorFlow 1.2 GPU in Anaconda env with py 3.6 Ubuntu 16.04 Setup tools使用 py 3.6 Ubuntu 16.04 安装工具在 Anaconda 环境中安装 TensorFlow 1.2 GPU 时出错
【发布时间】:2017-06-16 16:49:44
【问题描述】:

似乎 TF 需要 setuptools 27.2.0 而我有 setuptools (36.0.1) ????

在 Ubuntu 16.04 上使用新创建和下载的 Anaconda 虚拟环境(在另一个环境中,我的 TF1.1GPU 运行良好)(py362)我尝试安装 TF 1.2GPU、anaconda 命令行客户端(版本 1.6.3)Python 3.6.1 FWIW 我确实安装了建议的 protobuf 二进制文件,因为在安装 TF 之前我有一台相当大的机器(pip3 install --upgrade \ https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp35-none-linux_x86_64.whl) 会不会把我搞砸了?虽然错误消息指向其他地方,但我看不到 setuptools 问题的解决方案?

我确实看到以前的版本有一些类似的问题,但没有找到解决方案?我使用了以下内容:

pip install --upgrade \ https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.2.0-cp36-cp36m-linux_x86_64.whl

很多安装都很好,但后来我得到了这个,我无法运行 TF。

FileNotFoundError: [Errno 2] No such file or directory: '/home/tom/anaconda3/envs/py362/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg'
(py362) tom@tomServal:~$ pip install setuptools-27.2.0-py3.6
Collecting setuptools-27.2.0-py3.6
Could not find a version that satisfies the requirement setuptools-27.2.0-py3.6 (from versions: )
No matching distribution found for setuptools-27.2.0-py3.6
(py362) tom@tomServal:~$ pip install setuptools
Requirement already satisfied: setuptools in ./anaconda3/envs/py362/lib/python3.6/site-packages

做一个点子列表我看到了

setuptools (36.0.1)

所以看来TF1.2安装的要求可能被错误地固定了?

【问题讨论】:

    标签: python ubuntu tensorflow anaconda setuptools


    【解决方案1】:

    pip install setuptools==27.2.0

    【讨论】:

    • 看倒数第三行,运气不好...(试过了)
    • 我看到您尝试了不同的命令:pip install setuptools-27.2.0-py3.6。你可以试试我的吗?
    • HMM 看起来是这样做的!谢谢,虽然很奇怪
    • 为什么 TF 需要旧的 setuptools?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-09
    • 2021-06-05
    • 1970-01-01
    • 2018-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多