dll load failed: 找不到指定的模块_Python找不到指定的模块

本人Python萌新

源程序:

import pyttsx3

engine = pyttsx3.init()
engine.say(entryName.get())
engine.runAndWait()

以下是报错信息:

Exception in Tkinter callback

Traceback (most recent call last):

File "D:gan_pyvenvScriptspython.exelibsite-packagespyttsx3__init__.py", line 20, in init

eng = _activeEngines[driverName]

File "C:UsersAdministratorAppDataLocalProgramsPythonPython37libweakref.py", line 137, in __getitem__

o = self.data[key]()

KeyError: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:UsersAdministratorAppDataLocalProgramsPythonPython37libtkinter__init__.py", line 1705, in __call__

return self.func(*args)

File "D:/code/venv/1.py", line 63, in addInformation

engine = pyttsx3.init()

File "D:gan_pyvenvScriptspython.exelibsite-packagespyttsx3__init__.py", line 22, in init

eng = Engine(driverName, debug)

File "D:gan_pyvenvScriptspython.exelibsite-packagespyttsx3engine.py", line 30, in __init__

self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)

File "D:gan_pyvenvScriptspython.exelibsite-packagespyttsx3driver.py", line 50, in __init__

self._module = importlib.import_module(name)

File "C:UsersAdministratorAppDataLocalProgramsPythonPython37libimportlib__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "<frozen importlib._bootstrap>", line 1006, in _gcd_import

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 677, in _load_unlocked

File "<frozen importlib._bootstrap_external>", line 728, in exec_module

File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

File "D:gan_pyvenvScriptspython.exelibsite-packagespyttsx3driverssapi5.py", line 3, in <module>

import win32com.client

File "D:PyCharm 2019.2.2helperspydev_pydev_bundlepydev_import_hook.py", line 21, in do_import

module = self._system_import(name, *args, **kwargs)

File "D:gan_pyvenvScriptspython.exelibsite-packageswin32com__init__.py", line 5, in <module>

import win32api, sys, os

File "D:PyCharm 2019.2.2helperspydev_pydev_bundlepydev_import_hook.py", line 21, in do_import

module = self._system_import(name, *args, **kwargs)

ImportError: DLL load failed: 找不到指定的程序。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值