I had a similar problem when installing under 64-bit Python 3.4.2. I ran the install pywin32-219.win-amd64-py3.4.exe executable from http://www.lfd.uci.edu/~gohlke/pythonlibs/ .
The site clearly states:
"Python 3.4 users must manually run python.exe Scripts\pywin32_postinstall.py -install from an elevated command prompt."
which I did not do for the first time; I installed the following feedback from a regular request:
c:\python34>python.exe Scripts\pywin32_postinstall.py -install Copied pythoncom34.dll to C:\Python34\pythoncom34.dll Copied pywintypes34.dll to C:\Python34\pywintypes34.dll You do not have the permissions to install COM objects. The sample COM objects were not registered. etc.etc. Finishing with "The pywin32 extensions were succesfully installed" ...
I just read the last sentence, and I started to run some code that caused the loading of these DLLs to fail.
So, I did some research and started an elevated prompt (like: see http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html ") and ran again:
c:\python34>python.exe Scripts\pywin32_postinstall.py -install Copied pythoncom34.dll to C:\Windows\system32\pythoncom34.dll Copied pywintypes34.dll to C:\Windows\system32\pywintypes34.dll Registered: Python.Interpreter Registered: Python.Dictionary Registered: Python -> Software\Python\PythonCore\3.4\Help[None]=None -> Software\Python\PythonCore\3.4\Help\Pythonwin Reference[None]='C:\\Python34\\Lib\\site-packages\\PyWin32.chm' Pythonwin has been registered in context menu Shortcut for Pythonwin created Shortcut to documentation created The pywin32 extensions were successfully installed.
And now my code works happily (as far as the question is concerned ... sigh, much more).
MZA Nov 28 '14 at 10:20 2014-11-28 22:20
source share