Windows上的Pygame安装-错误:无法找到vcvarsall.bat [英] Pygame installation on Windows - error: Unable to find vcvarsall.bat

查看:70
本文介绍了Windows上的Pygame安装-错误:无法找到vcvarsall.bat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台Win7 64位开发机.我已经下载并安装了Python 2.6.6 32bit.我还下载了适用于python 2.6的pygame 1.9.1并尝试安装它.我知道了:

I have a Win7 64 bit dev machine. I've downloaded and installed Python 2.6.6 32bit. I've also downloaded pygame 1.9.1 for python 2.6 and tried to install it. I got:

C:\pygame-1.9.1release>setup.py install
....
running build_ext
building 'pygame._numericsurfarray' extension
error: Unable to find vcvarsall.bat

我该怎么办?
(如果相关,我没有安装任何编译器或Visual Studio或任何东西)

What should I do?
(I don't have any compiler or visual studio or anything installed, if it's relevant)

推荐答案

PyGame的下载页面上-使用专用于Windows的msi文件安装,而不要下载源代码并执行:

On PyGame's download page - use the msi file which is a dedicated Windows installation instead of downloading the source and executing:

setup.py install

这篇关于Windows上的Pygame安装-错误:无法找到vcvarsall.bat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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