pyttsx: No module named 'engine'

前端 未结 7 1325
青春惊慌失措
青春惊慌失措 2020-12-03 01:02

I\'m trying to install TTS package by using this. Everything was okay until I tried to execute the following command:

import pyttsx

I got b

7条回答
  •  佛祖请我去吃肉
    2020-12-03 01:39

    I found out the solution. Library was created in python2 language and there are not a lot of differences between those 2 versions, but exclusively in this case that occurs.

    Move to your DP folder and change in engine.py "except Exception as e" instead of "except Exception, e", line 67. Do the same in drive.py, line 105.

    Because of files are secured try to execute, e. g.

    sudo nano engine.py (or drive.py)

    I guess I helped everyone with that kind of problem. :)

提交回复
热议问题