【问题标题】:pygame in anaconda prompt蟒蛇提示中的pygame
【发布时间】:2020-06-25 06:39:56
【问题描述】:

我在 Anaconda Prompt 中使用 tensorflow 环境,我正在尝试安装 pygame,但出现以下错误。

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - pygame -> python[version='2.7.*|3.5.*']

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

在这种情况下如何安装 pygame。我对 conda 有点陌生。

【问题讨论】:

  • 你从那个错误中理解了什么?

标签: python pygame anaconda conda


【解决方案1】:

如果您跳过 conda 并按照 recommendation 使用 pip,您可能会得到它的工作:

python3 -m pip install -U pygame

【讨论】:

  • 我在 conda 上运行一个虚拟环境,我需要 pygame。我已经从 pip 安装了它。我应该再在这里做一次吗?
  • -U 表示更新,您可能有旧安装。
  • @S_I2020 我已经从 pip 安装了它。你能扩展一下吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-10-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-10-21
  • 2016-05-28
相关资源
最近更新 更多