【问题标题】:protobuf requires Python '>=3.7' but the running Python is 3.6.4protobuf 需要 Python \'>=3.7\' 但运行的 Python 是 3.6.4
【发布时间】:2023-01-11 17:42:19
【问题描述】:

“protobuf 需要 Python '>=3.7' 但运行的 Python 是 3.6.4”

亲爱的社区, 我正在使用 CARLA 模拟器,为此我需要使用 python 3.6 和 protobuf。 当我想安装 'protobuf' 时,出现此错误“protobuf 需要 Python '>=3.7' 但运行的 Python 是 3.6.4” 有谁知道该怎么办?

【问题讨论】:

  • 将您的 Python 更新到 >= 3.7,因为 CARLA 也应该与该版本兼容。 see under C.
  • Python 3.6 是out of support。 Protobuf 不是唯一不再支持它的包。升级到受支持的版本,最好是 3.10。

标签: python protocol-buffers carla


【解决方案1】:

您可以安装适用于 Python 3.6 版的软件包。下面的链接link

如何安装: pip install protobuf==3.19.6

【讨论】:

  • 这不是真正的解决方案——Python 3.6 不受支持。许多软件包已经放弃了对此的支持。 Protobuf 可能会工作,但其他东西会破坏
猜你喜欢
  • 2020-06-02
  • 1970-01-01
  • 2023-03-15
  • 2020-05-07
  • 1970-01-01
  • 2021-12-30
  • 1970-01-01
  • 2018-08-17
  • 1970-01-01
相关资源
最近更新 更多