python 3.5的Pygame安装 [英] Pygame installation for python 3.5

查看:293
本文介绍了python 3.5的Pygame安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,我无法重复安装Pygame的说明.说明来自此网站: https://skellykiernan.wordpress.com/2015/01/04/python-pygame-install/

I cannot repeat the instructions to install Pygame for some reason. Instructions are from this website: https://skellykiernan.wordpress.com/2015/01/04/python-pygame-install/

我下载了最新的二进制文件:

I downloaded the most recent binary:

pygame-1.9.2a0-cp35-none.win32.whl

我将此.whl文件放入Scripts文件夹中,并在那里打开了命令窗口.然后,按照上面博客中的说明(而不是我的书"Python Crash Course"中几乎没有用的说明),我输入以下内容:

I placed this .whl file into the Scripts folder and opened a command window there. Then, following the instructions from the blog above (rather than the instructions from my book, "Python Crash Course," which were next to useless), I typed in the following:

pip3 install pygame-1.9.2a0-cp35-none.win32.whl

我得到的是:

pygame-1.9.2a0-cp35-none-win32.whl is not a supported wheel on this platform.

我在做什么错,或者还有另一种更好的方法来为Python 3.5安装Pygame?

What am I doing wrong, or is there another, better way to install Pygame for Python 3.5?

推荐答案

我认为您使用的是64位python版本.您尝试安装的pygame适用于32位版本的python.您应该尝试下载64位版本 pygame-1.9.2a0-cp35-none-win_amd64.whl

I think you are using 64 bit python version. The pygame you are trying to install is for 32 bit version of python. You should try downloading the 64 bits version pygame-1.9.2a0-cp35-none-win_amd64.whl

这篇关于python 3.5的Pygame安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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