使用 pywin32 模块出现此错误?

Getting this error using pywin32 module?

这是我的代码:

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,但我没有处理这些的经验。关于如何使这项工作有任何建议或分步建议吗?

如果您查看 Traceback 错误,您会发现哪里出错了。在 test13.py 文件的第 1 行和 win32 包的第 5 行。首先要问的是"what does the error mean?"看这里:import win32api error in Python 2.6. Although it is a reference for Python 2, it should give you a good idea of what to do in your similar situation. It seems like you have to move some dll files from where ever they are currently located to the package directory in your Python36-32 directory. For your possible Python 3 needs, here is a good reference: https://github.com/pyinstaller/pyinstaller/issues/1840