【问题标题】:How to install tf-agents in anaconda如何在 anaconda 中安装 tf-agents
【发布时间】:2020-12-01 01:37:59
【问题描述】:

我对 Python 比较陌生,到目前为止,我的项目只要求我使用 Anaconda 中已有的包。我正在尝试使用 tensorflow 进行一些强化学习,为此我必须下载 tf-agents,这是一个在 conda 中不会自动提供的包。 TensorFlow 提供此信息:https://www.tensorflow.org/agents/overview#installation Github 仓库是:https://github.com/tensorflow/agents

我正在使用 Python 3.8.3、Tensorflow 2.1.0

我不确定我是否应该为强化学习创建一个不同的新环境,或者包依赖项是否不会出现任何问题。谢谢!

【问题讨论】:

    标签: python tensorflow reinforcement-learning


    【解决方案1】:

    您的问题有两个部分的答案

    1. 在 cmd.exe 窗口中输入 'pip install tf-agents

    但您必须做更多工作才能使其可用:

    1. 您必须升级到 tensorflow 2.3 才能解决依赖项中的冲突

    【讨论】:

      猜你喜欢
      • 2021-02-26
      • 2014-03-05
      • 2015-05-17
      • 2016-09-05
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      • 2019-12-25
      • 2019-04-24
      相关资源
      最近更新 更多