1

我尝试了不同的东西,但无法摆脱这个问题

我正在尝试通过以下网站创建一个简单的语音识别: https ://www.codementor.io/edwardzionsaji/simple-voice-enabled-chat-bot-in-python-kt2qi5oke

我已经尝试过这个解决方案:PYTTSX 错误:找不到名为驱动程序的模块

并在下面得到了这个错误如何解决。

Traceback (most recent call last):
['hello', 'world', 'this', 'my', 'third', 'program']
  File "C:/Users/muhammed.khalifa/Desktop/program/speech_rec.py", line 5, in <module>
    import wikipedia
      File "C:\Users\muhammed.khalifa\AppData\Local\Programs\Python\Python36\lib\site-packages\wikipedia\__init__.py", line 1, in <module>
        from .wikipedia import *
      File "C:\Users\muhammed.khalifa\AppData\Local\Programs\Python\Python36\lib\site-packages\wikipedia\wikipedia.py", line 3, in <module>
        import requests
      File "C:\Users\muhammed.khalifa\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 43, in <module>
        import urllib3
      File "C:\Users\muhammed.khalifa\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\__init__.py", line 7, in <module>
        from .connectionpool import (
      File "C:\Users\muhammed.khalifa\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 3, in <module>
        import logging
      File "C:\Users\muhammed.khalifa\AppData\Local\Programs\Python\Python36\lib\logging\__init__.py", line 28, in <module>
        from string import Template
    ImportError: cannot import name 'Template'
4

0 回答 0