Mulagala Mulagala - 1 month ago 17
Python Question

ImportError: No module named pyttsx

I have installed

pyttsx
package from this source

https://pypi.python.org/pypi/pyttsx/1.0#downloads

downloaded, extracted and installed as
python setup.py install


but still i am getting

ImportError: No module named pyttsx


when importing
import pyttsx


any help would be appriciated!

Answer

I think you are better to use pip

$ pip install pyttsx
$ pip list
pip (1.5.4)
pyttsx (1.1)
setuptools (2.2)

and everything should be fine

$ python
Python 2.7.2 (default, Jul 20 2011, 02:32:18)
[GCC 4.2.1 (LLVM, Emscripten 1.5, Empythoned)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyttsx
>>>