无法在Python的3.4安装64位的Pygame(Unable to install 64-bit

2019-11-03 18:25发布

我已经安装了64位蟒蛇3.4,其自带画中画。 我想安装pygame的,我也知道,他们有他们的网站上32位版本不会与我的Python版本的工作。 所以,我从下载的64位蟒蛇3.4 pygame的包在这里 (pygame的-1.9.2a0-CP34-NONE-win_amd64.whl)。 我改名为包pygame.whl并试图用PIP在命令行上安装它,但它给了我这个错误;

Collecting pygame
Could not find a version that satisfies the requirement pygame (from versions:
)
Some externally hosted files were ignored as access to them may be unreliable
(use --allow-external pygame to allow).
No matching distribution found for pygame

所以,我尝试使用--allow-external选择,但它给了我一个不同的错误,并要求我提供一个需求文件。 我环顾四周,发现我可能需要使用的尝试--pre选择,但它给我确切的同样的错误如上不管。 我怎样才能安装包?

Answer 1:

你没有安装最可能的原因.whl包是您键入

pip install pygame

在命令提示符,而不是切换到目录您保存您的更名pygame.whl运行

pip install pygame.whl

pip要求您提供所安装的文件的全名

你得到的错误消息表明您遇到的第一个命令, pip一直在寻找在PyPI中的pygame (这是不存在的)。 该--allow-external命令将允许你指定一个远程位置,其中一个源文件或.whl文件可能被发现。

在未来,我推荐从重命名你的联系,所以,当你尝试安装它们你确定你正在运行正确的命令(相当出色)的网站下载的文件。 请记住,你总是可以使用Tab键切换到命令行上完成文件名。



文章来源: Unable to install 64-bit Pygame on Python 3.4