win32com import error python 3.4 [duplicate]

一笑奈何 提交于 2019-11-29 03:57:06
David Woakes

This worked without needing to copy DLLs in python 3.3.

Why do these need to be copied as in 2.6? Surely this should be fixed by now!

After some additional research I found that all you need to do is run the post install script as administrator.

python C:\Python34\Scripts\pywin32_postinstall.py -install

It appears that the install script isn't doing this step correctly.

TankorSmash

After I copied pywintypes26.dll and pythoncom26.dll to c:\Python26\Lib\site-packages\win32 I solved the problem!

quoted from here

Zero0evolution

I'm also running python 3.4 64 bit in Windows 7, and I had the same problem.

I solved it as suggested in this Stack Overflow answer. Basically, I added the path where pywintypes34.dll was located to my system path and it worked.

In my case it was C:\Python34\Lib\site-packages\pywin32_system32. There has to be 2 DLLs "pythoncom34.dll","pywintypes34.dll" in the path.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!