如何安装在Windows 7 pywin32模块 [英] How to install pywin32 module in windows 7

查看:132
本文介绍了如何安装在Windows 7 pywin32模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装pywin32模块。我是从sourceforge.net下载了它。当我运行

I am trying to install pywin32 module. I downloaded it from sourceforge.net. When i run

setup.py install

这表明无法找到vcvarsall.bat。我GOOGLE了一下,发现我必须安装MinGW和设置路径然后运行

It showed "Unable to find vcvarsall.bat". I googled about it and found that I have to install mingW and set path then run

python setup.py build --compiler=mingw32

但它显示

Can't find a version in Windows.h

我试图谷歌,但解决不了问题。任何人可以帮助我在这?
(我有Visual Studio 2010的最终试用版安装和安装MinGW的C和C ++ compilor。)操作系统:Windows 7的

I tried to google it but can't solve the problem. Can anybody help me in this? (I have visual studio 2010 ultimate trial version installed and mingw c and c++ compilor installed.) operating system : windows 7.

谁能告诉我从哪里可以下载的MinGW已编译的二进制蟒蛇的来源,所以我没有做这一切。或者,如果我能得到哪些已经有了Windows模块巨蟒。先谢谢了。

Can anybody tell me a source from where I can download python binaries already compiled in mingW , so I don't have to do all this. Or if I can get a python which already have windows modules. Thanks in advance.

推荐答案

您只是想安装它,或者是你希望从源代码来构建?

are you just trying to install it, or are you looking to build from source?

如果你只需要安装,最简单的方法就是用这里提供的MSI安装程序:

If you just need to install, the easiest way is to use the MSI installers provided here:

<一个href=\"http://sourceforge.net/projects/pywin32/files/pywin32/\">http://sourceforge.net/projects/pywin32/files/pywin32/
(更新版本)

http://sourceforge.net/projects/pywin32/files/pywin32/ (for updated versions)

请确保你得到正确的版本(Python版本,32位/ 64位,等等相匹配)

make sure you get the correct version (matches Python version, 32bit/64bit, etc)

这篇关于如何安装在Windows 7 pywin32模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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