安装 pyttsx3 时:命令出错,退出状态为 1 [英] While installing pyttsx3: Command errored out with exit status 1

查看:23
本文介绍了安装 pyttsx3 时:命令出错,退出状态为 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

我正在 python 3.7.3 上尝试这个并使用最新的 pip 版本,但我不明白如何修复它

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

推荐答案

这是 pyttsx3 2.80 中的一个错误:https://github.com/nateshmbhat/pyttsx3/issues/82.还没有修复.尝试降级到 pyttsx3 2.71:

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

这篇关于安装 pyttsx3 时:命令出错,退出状态为 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆