如何解决ImportError:DLL加载失败:找不到指定的模块

时间:2017-01-16 18:59:54

标签: python python-2.7

我试图让这个程序运行但是我无法看到如何解决运行时显示的错误信息。

这是我正在运行的代码;

import pyttsx   # text-to-speech library
engine = pyttsx.init()   # initiates speech engine
engine.say('Hello World')   # loads text into engine
engine.runAndWait()   # THIS LINE IS IMPORTANT, runs the speech engine

` 这是错误信息;

Traceback (most recent call last):
    File "V:/testing/test1.py", line 3, in <module>
        engine = pyttsx.init()   # initiates speech engine
    File "V:\testing\set 10\lib\site-packages\pyttsx\__init__.py", line 39, in init
        eng = Engine(driverName, debug)
    File "V:\testing\set 10\lib\site-packages\pyttsx\engine.py", line 45, in __init__
        self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
    File "V:\testing\set 10\lib\site-packages\pyttsx\driver.py", line 64, in __init__
        self._module = __import__(name, globals(), locals(), [driverName])
    File "V:\testing\set 10\lib\site-packages\pyttsx\drivers\sapi5.py", line 19, in <module>
        import win32com.client
    File "V:\testing\set 10\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.

我正在使用Pycharm Community Edition和python 2.7.13。该计划是尝试遵循此(http://letsmakerobots.com/node/41226)toutorial时采取的首要步骤之一。

我安装了以下软件包; pip - 9.0.1,pyttsx - 1.1,pywin32 - 219,setuptools - 33.1.0,wheel - 0.29.0

非常感谢任何建议或答案,Theo。

0 个答案:

没有答案