简体   繁体   中英

Failed to install tts-watson

I'm trying to install tts-watson 1.0.0 to my Mac OS X Sierra using the following:

    sudo pip install tts-watson

The installing started and then I get this error:

    error: could not create'/System/Library/Frameworks/Python.framework/Versions/2.7/share': Operation not permitted

----------------------------------------
    Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-NMf7OP/anyconfig/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Asdffe-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-NMf7OP/anyconfig/

Please help me to get this fixed. Thanks in advance.

The problem is port audio. To fix this problem, install portaudio.

On Mac,

brew install portaudio

On Linux,

apt-get install portaudio19-dev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM