0
$ pip install pyttsx3
Collecting pyttsx3
  Using cached pyttsx3-2.80-py3-none-any.whl (39 kB)
Collecting pyobjc>=2.4
  Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB)
Collecting comtypes; "win32" in sys_platform
  Using cached comtypes-1.1.7.zip (180 kB)
Collecting pyobjc-framework-SyncServices==6.1
  Using cached pyobjc-framework-SyncServices-6.1.tar.gz (42 kB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\abrar\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Abrar\\AppData\\Local\\Temp\\pip-install-e8rlz1t4\\pyobjc-framework-SyncServices\\setup.py'"'"'; __file__='"'"'C:\\Users\\Abrar\\AppData\\Local\\Temp\\pip-install-e8rlz1t4\\pyobjc-framework-SyncServices\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Abrar\AppData\Local\Temp\pip-install-e8rlz1t4\pyobjc-framework-SyncServices\pip-egg-info'
         l = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
      File "c:\users\abrar\appdata\local\programs\python\python3

i m trying this on python 3.7.3 and using latest pip version but i couldn't understand how to fix it

anthony sottile
  • 61,815
  • 15
  • 148
  • 207

4 Answers4

6

It's a bug in pyttsx3 2.80: https://github.com/nateshmbhat/pyttsx3/issues/82. No fix yet. Try downgrading to pyttsx3 2.71:

pip install -U pyttsx3==2.71
phd
  • 82,685
  • 13
  • 120
  • 165
1

Try to run the following command

pip install git+git://github.com/nateshmbhat/pyttsx3.git

It worked for me

I got the above command from pyttsx3 github issues

0

If you are using Python 3.x, then you will be using PIP3. To install pyttsx3 for Python 3.x, you will have to use pip3.

If you are using Linux based OS, use the following command.

pip3 show pyttsx3

If you are using Windows,

pip3 install pywin32 pypiwin32 pyttsx3

This copied from Bhutan IO. They have shared interesting examples, in the link given below with YouTube tutorial too. How to Install pyttsx 3 in Windows

Sonam
  • 11
  • 1
0

First try installing wheel pip install wheel Then you can install pyttsx3, pip install pyttsx3, this should work for you.

Warren_NK
  • 1
  • 1