0
这是我的代码:使用pywin32模块获取此错误?
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6)
messages = inbox.Items
message = messages.GetLast()
body_content = message.body
print (body_content)
,我收到以下错误:
C:\Users\bre\AppData\Local\Programs\Python\Python36-32\python.exe C:/Users/bre/PycharmProjects/test/TkinterApp/test13.py
Traceback (most recent call last):
File "C:/Users/bre/PycharmProjects/test/TkinterApp/test13.py", line 1, in <module>
import win32com.client
File "C:\Users\bre\AppData\Local\Programs\Python\Python36-32\lib\site-packages\win32com\__init__.py", line 5, in <module>
import win32api, sys, os
ImportError: DLL load failed: The specified module could not be found.
Process finished with exit code 1
究竟这是否意味着,我怎么就能够解决这个问题?我看到我可以下载一些DLL
,但我没有处理这方面的经验。有关如何进行此项工作的任何建议或逐步建议?