Python Pip“找不到满足要求的”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37125823/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pip "Could not find a that satisfies the requirement"
提问by nedla2004
When I try to install PyGame with:pip install pygame
it says
当我尝试安装 PyGame 时:pip install pygame
它说
Collecting pygame
Could not find a version that satisfies the requirement pygame (from versions: )
No matching distribution found
收集pygame
找不到满足 pygame 要求的版本(来自版本:)
找不到匹配的发行版
I believe that I am using the most recent version, 8.1.1. I am using Python 3.5.1, on Windows 8.1. I have looked at other answers for this problem and none worked for me. Thanks for any help.
我相信我使用的是最新版本 8.1.1。我在 Windows 8.1 上使用 Python 3.5.1。我已经查看了这个问题的其他答案,但没有一个对我有用。谢谢你的帮助。
采纳答案by smac89
pygame
is not distributed via pip
. See this linkwhich provides windows binaries ready for installation.
pygame
不通过pip
. 请参阅此链接,该链接提供了可供安装的 Windows 二进制文件。
- Install python
- Make sure you have python on your PATH
- Download the appropriate wheel from this link
- Install pip using this tutorial
Finally, use these commands to install pygame wheel with pip
Python 2 (usually called pip)
pip install file.whl
Python 3 (usually called pip3)
pip3 install file.whl
- 安装蟒蛇
- 确保你的PATH上有 python
- 从这个链接下载合适的轮子
- 使用本教程安装 pip
最后,使用这些命令通过 pip 安装 pygame wheel
Python 2(通常称为 pip)
pip install file.whl
Python 3(通常称为 pip3)
pip3 install file.whl
Another tutorial for installing pygame for windows can be found here. Although the instructions are for 64bit windows, it can still be applied to 32bit
可以在此处找到为 Windows 安装 pygame 的另一个教程。虽然说明是针对64bit windows的,但是还是可以应用到32bit