按照此处的指南安装 microsoft azure text to Speech SDK:https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-python#install-the-speech-sdk
它说要运行pip install azure-cognitiveservices-speech
,但不幸的是这会返回
Could not find a version that satisfies the requirement azure->cognitiveservices-speech (from versions: ) No matching distribution found for >azure-cognitiveservices-speech
我尝试使用 ==1.2.0 在末尾添加版本号,并添加 --pre。所以:
python -m pip install azure-cognitiveservices-speech --pre
python -m pip install azure-cognitiveservices-speech==1.2.0
.我可以使用
python -m pip install azure
它下载了一大堆模块,但没有下载认知服务模块。我在 python 2.7 和 python 3.7 上试过,我还安装了 适用于 Visual Studio 2017 的 Microsoft Visual C++ Redistributable .如果有人对如何安装此模块有任何想法,将不胜感激。这是 pypi 链接:https://pypi.org/project/azure-cognitiveservices-speech/
最佳答案
azure-cognitiveservices-speech
1.2.0 版可用于 Python 3.5 , 3.6 和 3.7 对于 MacOS、Linux 和 Windows,仅 64 位 .
你的 Python 版本是什么?检查它是 64 位,而不是 32 位:
控制台/外壳:
python -c "import struct; print(struct.calcsize('P') * 8)"
关于python - 不能 pip microsoft azure-cognitiveservices-speech?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54425580/