By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,898 Members | 1,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,898 IT Pros & Developers. It's quick & easy.

Help installing pywin32 - Can't find a version in Windows.h

P: 2
Please excuse my newbie question, but I'm trying to install pywin32 using Python26 on Windows 7 64-bit machine. When I run the "python setup.py -q install" command I get the following error:

File "\download\pywin32-214\setup.py", line 2152, in <module>
('', ('pywin32.pth',)),
File "D:\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "D:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "D:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "\download\pywin32-214\setup.py", line 1251, in run
install.run(self)
File "D:\Python26\lib\distutils\command\install.py" , line 577, in run
self.run_command('build')
File "D:\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "D:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "\download\pywin32-214\setup.py", line 596, in run
build.run(self)
File "D:\Python26\lib\distutils\command\build.py", line 134, in run
self.run_command(cmd_name)
File "D:\Python26\lib\distutils\cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "D:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "D:\Python26\lib\distutils\command\build_ext.p y", line 345, in run
self.build_extensions()
File "\download\pywin32-214\setup.py", line 872, in build_extensions
self.build_extension(ext)
File "\download\pywin32-214\setup.py", line 1065, in build_extension
why = self._why_cant_build_extension(ext)
File "\download\pywin32-214\setup.py", line 760, in _why_cant_build_extension
raise RuntimeError("Can't find a version in Windows.h")
RuntimeError: Can't find a version in Windows.h

I have both Visual Studio 2008 and Visual Studio 2010 installed on my machine. What am I missing?
Dec 15 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.