gpt4 book ai didi

python - 使用 py 3.6 Ubuntu 16.04 安装工具在 Anaconda 环境中安装 TensorFlow 1.2 GPU 时出错

转载 作者:行者123 更新时间:2023-12-04 19:14:10 25 4
gpt4 key购买 nike

看来 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安装的要求可能被错误地固定了?

最佳答案

pip install setuptools==27.2.0

关于python - 使用 py 3.6 Ubuntu 16.04 安装工具在 Anaconda 环境中安装 TensorFlow 1.2 GPU 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44594292/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com