【问题标题】:not able to Install an old version of tensorflow无法安装旧版本的 tensorflow
【发布时间】:2021-12-01 16:41:21
【问题描述】:

如何在 conda vertual 环境中安装旧版本的 Tensorflow?当我尝试这个命令时,我想要 Tensorflow-gpu 1.4:

conda install tensorflow-gpu=1.4

我在附图中看到了消息。

当我尝试conda create -n tf_1_4 python=3.6 tensorflow-gpu=1.4 时,我得到了这个:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package python conflicts for:
python=3.6
tensorflow-gpu=1.4 -> tensorflow-gpu-base==1.4.1 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

The following specifications were found to be incompatible with your system:

 - feature:/linux-64::__glibc==2.26=0
 - feature:|@/linux-64::__glibc==2.26=0

Your installed version is: 2.26

【问题讨论】:

标签: python tensorflow conda


【解决方案1】:

错误消息指出 Python 必须是 2.7、3.5 或 3.6,而当前环境是 3.7。创建一个新环境:

conda create -n tf_1_4 python=3.6 tensorflow-gpu=1.4

【讨论】:

  • failed UnsatisfiableError:发现以下规范相互不兼容:输出格式:请求的包->可用版本包python冲突:python = 3.6 tensorflow-gpu = 1.4 -> tensorflow- gpu-base==1.4.1 -> python[version='>=2.7,=3.5,=3.6,
  • @rif3aadev 尝试同时添加 conda-forge 和免费频道 conda create -n tf_1_4 -c conda-forge -c free tensorflow-gpu=1.4 python=3.6
猜你喜欢
  • 2020-04-26
  • 2020-06-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-20
  • 1970-01-01
  • 2018-06-30
  • 1970-01-01
相关资源
最近更新 更多