win32com not importing from python file - DLL load failed

老子叫甜甜 提交于 2019-12-11 12:34:38

问题


I'm trying to import win32com.client module into python 2.7.10 which give me error

 Traceback (most recent call last):
      File "C:/Users/varma/Desktop/1.py", line 2, in <module>
        import win32api
    ImportError: DLL load failed: The specified module could not be found.

But the same is working from Python Shell and terminal and not giving any error if i execute code

import win32com.client

Why running the code giving in python file giving me error and the same code is not giving any error if wrote on terminal and shell ?


回答1:


uninstalling and installed win32 back again fixed the problem thanks @ArtofWarfare



来源:https://stackoverflow.com/questions/35470227/win32com-not-importing-from-python-file-dll-load-failed

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