python - 安装 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:\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
我在 python 3.7.3 上尝试这个并使用最新的 pip 版本,但我不明白如何修复它
解决方案
pyttsx3
这是2.80中的一个错误: https ://github.com/nateshmbhat/pyttsx3/issues/82 。还没有修复。尝试降级到pyttsx3
2.71:
pip install -U pyttsx3==2.71
推荐阅读
- javascript - ScrollMagic - 停止滚动行为,直到动画完成
- python-3.x - Pygame midi 左右声道速度不同
- python - 有没有一种工具可以在 Python 注释中直观地显示数学表达式?
- ios - 我正在使用集合视图,我想在最初加载视图时选择最后一个单元格,稍后用户可以取消选择它
- javascript - 获取错误 state.stories 是不可迭代的
- javascript - http 在 PUT 请求中发送空值(Angular + spring jpa 应用程序)
- java - 不导入来自 build.gradle 的依赖项
- google-play - 如何修复 Google Play 警告:SSL 错误处理程序漏洞
- php - 如何插入 g: 在 XML 节点之前
- java - RestClient Elastic Search 外部主机