点“找不到满足要求的". [英] Pip "Could not find a that satisfies the requirement"

查看:103
本文介绍了点“找不到满足要求的".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过以下方式安装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.

  1. > 安装python
  2. 确保在 中安装了python > PATH
  3. > 此链接
  4. 使用> 本教程 安装pip >
  5. 最后,使用以下命令通过pip安装pygame wheel

  1. Install python
  2. Make sure you have python on your PATH
  3. Download the appropriate wheel from this link
  4. Install pip using this tutorial
  5. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆