点“找不到满足要求的". [英] Pip "Could not find a that satisfies the requirement"
问题描述
当我尝试通过以下方式安装PyGame时:pip install pygame
它说
When I try to install PyGame with:pip install pygame
it says
收集pygame
Collecting pygame
找不到满足以下条件的版本
需求pygame(来自版本:)
找不到匹配的分布
Could not find a version that satisfies the
requirement pygame (from versions: )
No matching distribution found
我认为我使用的是最新版本8.1.1.我在Windows 8.1上使用Python 3.5.1.我已经查看了针对此问题的其他答案,但没有一个对我有用.感谢您的帮助.
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.
推荐答案
pygame
并非通过pip
分发.请参见此链接,其中提供了可供安装的Windows二进制文件.
pygame
is not distributed via pip
. See this link which provides windows binaries ready for installation.
- > 安装python
- 确保在 中安装了python > PATH
- 从> 此链接
- 使用> 本教程 安装pip >
-
最后,使用以下命令通过pip安装pygame wheel
- 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(通常称为pip)
Python 2 (usually called pip)
-
pip install file.whl
Python 3(通常称为pip3)
Python 3 (usually called pip3)
-
pip3 install file.whl
可以在此处.尽管说明适用于64位Windows,但仍可以将其应用于32位
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
这篇关于点“找不到满足要求的".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!