可以用pip安装软件包(元数据问题)
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论