Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
571 views
in Technique[技术] by (71.8m points)

python - While installing pyttsx3: Command errored out with exit status 1

$ 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:usersabrarappdatalocalprogramspythonpython37python.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('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersAbrarAppDataLocalTemppip-install-e8rlz1t4pyobjc-framework-SyncServicespip-egg-info'
         l = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
      File "c:usersabrarappdatalocalprogramspythonpython3

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...