【问题标题】:pygame 2.0.0 installation error on m1 macOS Big Surm1 macOS Big Sur 上的 pygame 2.0.0 安装错误
【发布时间】:2021-02-17 03:18:59
【问题描述】:

我通过非rosetta终端使用python3 -m pip install pygame==2.0.0并得到这些错误:

ERROR: Command errored out with exit status 1:
 command: /opt/homebrew/opt/python@3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-install-cqq2oily/pygame_3a311b7a5339480eb6bae08f88ff3fe6/setup.py'"'"'; __file__='"'"'/private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-install-cqq2oily/pygame_3a311b7a5339480eb6bae08f88ff3fe6/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-pip-egg-info-ig7pjjbc
     cwd: /private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-install-cqq2oily/pygame_3a311b7a5339480eb6bae08f88ff3fe6/

ERROR: Could not find a version that satisfies the requirement pygame==2.0.0
ERROR: No matching distribution found for pygame==2.0.0

我的自制软件,pip3 都是最新的。

任何帮助将不胜感激!

【问题讨论】:

  • 你试过2.0.1吗?
  • 当你输入python3 -m pip install pygame时,安装的是什么pygame版本?
  • pygame 1.9.6 已安装。我也尝试过 --upgrade pygame 但也出现了一个很长的错误:(

标签: python-3.x pygame apple-m1


【解决方案1】:

我已经遇到了同样的问题:pip module 只检测到早于 2.0.0 的 pygame 版本。

它总是安装 pygame 1.9.6。


也许你应该:

1。升级点

我不知道pip 是如何工作的,但我通过输入更新了它

python3 -m pip install --upgrade pip

然后,当我再次输入时

python3 -m pip install pygame

pip正确下载了pygame的2.0.1版本。


2。检查您的互联网连接

当然模块来自互联网。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-26
    • 2021-09-11
    • 2021-06-19
    • 2021-08-04
    • 2021-05-31
    相关资源
    最近更新 更多