同时安装pyttsx3:命令错误,退出状态为1

问题描述 投票:0回答:2
$ 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版本,但我不知道如何解决它

python pip pyttsx
2个回答
1
投票

这是pyttsx3 2.80:https://github.com/nateshmbhat/pyttsx3/issues/82中的错误。尚未解决。尝试降级到pyttsx3 2.71:

pip install -U pyttsx3==2.71

0
投票

尝试运行以下命令

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

它为我工作

我从pyttsx3 github issues中获得了上述命令>

热门问题
推荐问题
最新问题