可以用pip安装软件包(元数据问题)

发布于 2025-02-12 06:13:08 字数 1958 浏览 0 评论 0原文

3.10.5不匹配的软件包/车轮元数据(但它们确实匹配)

$ pip install pygame
Defaulting to user installation because normal site-packages is not writeable
Collecting pygame
  Using cached pygame-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.9 MB)
WARNING: Discarding https://files.pythonhosted.org/packages/56/56/0f26c8f73306f68dcc6577d58af04e3014b756aaf2effb9e73e7930707c5/pygame-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=754c2906f2ef47173a14493e1de116b2a56a2c8e1764f1202ba844d080248a5b (from https://pypi.org/simple/pygame/) (requires-python:>=3.6). Requested pygame from https://files.pythonhosted.org/packages/56/56/0f26c8f73306f68dcc6577d58af04e3014b756aaf2effb9e73e7930707c5/pygame-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=754c2906f2ef47173a14493e1de116b2a56a2c8e1764f1202ba844d080248a5b has inconsistent version: filename has '2.1.2', but metadata has '2.1.2'
  Using cached pygame-2.1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (21.2 MB)
WARNING: Discarding https://files.pythonhosted.org/packages/59/b2/68e2b70d52453dc42a4ad8197cebefd3a26555f9280de6a692cfdeb7d284/pygame-2.1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl#sha256=7889dce887ec83c9a0bef8d9eb3669d8863fdaf37c45bacec707d8ad90b24a38 (from https://pypi.org/simple/pygame/) (requires-python:>=3.6). Requested pygame from https://files.pythonhosted.org/packages/59/b2/68e2b70d52453dc42a4ad8197cebefd3a26555f9280de6a692cfdeb7d284/pygame-2.1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl#sha256=7889dce887ec83c9a0bef8d9eb3669d8863fdaf37c45bacec707d8ad90b24a38 has inconsistent version: filename has '2.1.2', but metadata has '2.1.2'
Downloading pygame-2.1.2.tar.gz (10.1 MB)
       |█▌                              | 471 kB 269 kB/s eta 0:00:36^C
ERROR: Operation cancelled by user

我正在尝试使用PIP安装Pygame模块,但是它不断显示有关使用Python 3.10.5与PIP 21.0的python

I'm trying to install the pygame module using pip, but it keeps displaying warnings about the package/wheel metadata not matching with the filename (but they do match)

$ pip install pygame
Defaulting to user installation because normal site-packages is not writeable
Collecting pygame
  Using cached pygame-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.9 MB)
WARNING: Discarding https://files.pythonhosted.org/packages/56/56/0f26c8f73306f68dcc6577d58af04e3014b756aaf2effb9e73e7930707c5/pygame-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=754c2906f2ef47173a14493e1de116b2a56a2c8e1764f1202ba844d080248a5b (from https://pypi.org/simple/pygame/) (requires-python:>=3.6). Requested pygame from https://files.pythonhosted.org/packages/56/56/0f26c8f73306f68dcc6577d58af04e3014b756aaf2effb9e73e7930707c5/pygame-2.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=754c2906f2ef47173a14493e1de116b2a56a2c8e1764f1202ba844d080248a5b has inconsistent version: filename has '2.1.2', but metadata has '2.1.2'
  Using cached pygame-2.1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (21.2 MB)
WARNING: Discarding https://files.pythonhosted.org/packages/59/b2/68e2b70d52453dc42a4ad8197cebefd3a26555f9280de6a692cfdeb7d284/pygame-2.1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl#sha256=7889dce887ec83c9a0bef8d9eb3669d8863fdaf37c45bacec707d8ad90b24a38 (from https://pypi.org/simple/pygame/) (requires-python:>=3.6). Requested pygame from https://files.pythonhosted.org/packages/59/b2/68e2b70d52453dc42a4ad8197cebefd3a26555f9280de6a692cfdeb7d284/pygame-2.1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl#sha256=7889dce887ec83c9a0bef8d9eb3669d8863fdaf37c45bacec707d8ad90b24a38 has inconsistent version: filename has '2.1.2', but metadata has '2.1.2'
Downloading pygame-2.1.2.tar.gz (10.1 MB)
       |█▌                              | 471 kB 269 kB/s eta 0:00:36^C
ERROR: Operation cancelled by user

Using Python 3.10.5 with pip 21.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文