如何在 Anaconda3 中安装 pyttsx?

如何在 Anaconda3 (Python3.7) windows 10 机器上安装 pyttsx?我尝试安装但收到错误


ERROR: Could not find a version that satisfies the requirement pyttsx3 (from versions: none)

ERROR: No matching distribution found for pyttsx3


C:\Users\Ramesh\Anaconda3\Scripts>pip install pyttsx3

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Collecting pyttsx3

  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/

  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/

  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/

  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/

  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyttsx3/

  Could not fetch URL https://pypi.org/simple/pyttsx3/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyttsx3/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

  ERROR: Could not find a version that satisfies the requirement pyttsx3 (from versions: none)

四季花海
浏览 585回答 3
3回答

哈士奇WWW

我遇到了同样的问题。我解决它的步骤是:转到 Anaconda 提示符并键入conda install pip. 这将在当前 conda 环境中安装 pip。2.在步骤 1 之后,键入pip install pyttsx3 。一些额外的帮助链接,请参阅安装非 conda 包 -管理 Conda 包

杨魅力

在您的错误消息中:however the ssl module in Python is not available尝试这个:pip install ssl

万千封印

如果在与 conda 相同的环境中使用 pip 安装它,则 pip 的最新更改会覆盖 conda 设置,反之亦然。您必须为 pip 包创建一个单独的环境。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python