Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install pywin32 module in windows 7 [duplicate]

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

setup.py install 

it shows "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 

but it's showing

Can't find a version in Windows.h 

Can anybody help? (I have a trial version of Visual Studio 2010 Ultimate installed and MinGW C and C++ compiler installed. Operating system: Windows 7.)

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.

like image 793
narayanpatra Avatar asked Feb 01 '11 13:02

narayanpatra


People also ask

What is pywin32 package?

This is the readme for the Python for Win32 (pywin32) extensions, which provides access to many of the Windows APIs from Python. See CHANGES. txt for recent notable changes. Only Python 3 is supported.

Does pywin32 work on 64 bit Python?

There is no pywin64 . But pywin32 has 64-bit builds.


1 Answers

You can install pywin32 wheel packages from PYPI with PIP by pointing to this package: https://pypi.python.org/pypi/pypiwin32 No need to worry about first downloading the package, just use pip:

pip install pypiwin32 

Currently I think this is "the easiest" way to get in working :) Hope this helps.

like image 74
Kanguros Avatar answered Sep 20 '22 12:09

Kanguros