import pyttsx funktioniert mit python 2.7, aber nicht in Python ist3

Frage: warum ist Python ist3, nicht auf die engine-Modul beim importieren pyttsx?

Details:

Mache ich dies auf einem raspberry pi mit Raspbian Wheezy

Unter python 2.7, die folgenden Werke:

>>> import pyttsx

Unter Python ist3, passiert Folgendes:

>>> import pyttsx
Traceback (etc...)
 File "<stdin>", line 1, in <module>
 File "/usr/local/lib/python3.2/dist-packages/pyttsx-1.1-py3.2.egg/pyttsx/__init__.py", line 18, in <module>
ImportError: No module named engine

Habe ich installiert und verwendet sudo pip install pyttsx

Habe ich importiert sys

sys.Pfad enthält dieses...

>>> print (sys.path) 
['','/usr/local/lib/python3.2/dist-packages/setuptools-5.4.1-py3.2.egg', '/usr/local/lib/python3.2/dist-packages/pyttsx-1.1-py3.2.egg', '/usr/lib/python3.2','usr/lib/python3.2/plat-linux2', '/usr/lib/python3.2/lib-dynload','/usr/local/lib/python3.2/dist-packages','/usr/lib/python3/dist-packages']

ls /usr/local/lib/Python ist3.2/dist-packages, Ergebnisse in...

easy-install.pth pyttsx-1.1-py3.2.egg setuptools-5.4.1-py3.2.egg setuptools.pth

unzip-t /usr/local/lib/Python ist3.2/dist-packages/pyttsx-1.1-py3.2.ei zeigt....

pyttsx/__init__.py  OK
pyttsx/voice.py   OK
pyttsx/engine.py  OK
(etc...)
No errors detected in compressed data of pyttsx-1.1-py3.2.egg

Vielen Dank für Ihre Hilfe!

InformationsquelleAutor mnr | 2014-07-25
Schreibe einen Kommentar