【问题标题】:While installing pyttsx3 over python 3.8 [duplicate]在 python 3.8 上安装 pyttsx3 [重复]
【发布时间】:2020-03-14 06:00:49
【问题描述】:
ERROR: Command errored out with exit status 1:
    ERROR: Command errored out with exit status 1:
     command: 'c:\python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\91826\\AppData\\Local\\Temp\\pip-install-2vyil_3k\\pyobjc-framework-Cocoa\\setup.py'"'"'; __file__='"'"'C:\\Users\\91826\\AppData\\Local\\Temp\\
pip-install-2vyil_3k\\pyobjc-framework-Cocoa\\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:\User
s\91826\AppData\Local\Temp\pip-install-2vyil_3k\pyobjc-framework-Cocoa\pip-egg-info'
         cwd: C:\Users\91826\AppData\Local\Temp\pip-install-2vyil_3k\pyobjc-framework-Cocoa\
    Complete output (15 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\91826\AppData\Local\Temp\pip-install-2vyil_3k\pyobjc-framework-Cocoa\setup.py", line 22, in <module>
        Extension(
      File "C:\Users\91826\AppData\Local\Temp\pip-install-2vyil_3k\pyobjc-framework-Cocoa\pyobjc_setup.py", line 408, in Extension
        os_level = get_os_level()
      File "C:\Users\91826\AppData\Local\Temp\pip-install-2vyil_3k\pyobjc-framework-Cocoa\pyobjc_setup.py", line 218, in get_os_level
        pl = plistlib.readPlist("/System/Library/CoreServices/SystemVersion.plist")
      File "c:\python\lib\plistlib.py", line 99, in readPlist
        with _maybe_open(pathOrFile, 'rb') as fp:
      File "c:\python\lib\contextlib.py", line 113, in __enter__
        return next(self.gen)
      File "c:\python\lib\plistlib.py", line 82, in _maybe_open
        with open(pathOrFile, mode) as fp:
    FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

【问题讨论】:

    标签: python-3.x windows module pycharm pyttsx


    【解决方案1】:

    可能是 pyobj 安装的问题,

    检查发布的旧版本是否可以解决您的问题, https://github.com/nateshmbhat/pyttsx3/releases

    要在 Windows 上安装 pyobj, 我不能帮助你,因为我没有解决这个问题:P 但是您可以尝试这种方式可以帮助您通过easy_install而不是pip进行安装 Issue with Installing PyObjC for Python

    【讨论】:

    • 我通过让我的 pycharm 作为管理员来做到这一点,pyttsx2.7 已安装
    • @arbazsheikh 因为只有最后一个“发布”2.80 需要 pyobj
    猜你喜欢
    • 2021-01-13
    • 1970-01-01
    • 2020-07-03
    • 2020-12-12
    • 1970-01-01
    • 1970-01-01
    • 2020-11-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多