【问题标题】:How to install pyttsx in Anaconda3?如何在 Anaconda3 中安装 pyttsx?
【发布时间】:2020-02-16 09:37:23
【问题描述】:

如何在 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)
ERROR: No matching distribution found for pyttsx3
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

【问题讨论】:

标签: python python-3.x windows-10 anaconda


【解决方案1】:

在您的错误消息中:

however the ssl module in Python is not available

试试这个:

pip install ssl

【讨论】:

  • 感谢您的宝贵时间。我厌倦了您的命令“pip install ssl”,我收到此错误错误:找不到满足要求 ssl 的版本(来自版本:无)错误:找不到 ssl 的匹配分发
【解决方案2】:

我遇到了同样的问题。我解决它的步骤是:

  1. 转到 Anaconda 提示符并键入 conda install pip 。这将在当前 conda 环境中安装 pip。

2.在第 1 步之后,输入pip install pyttsx3

一些额外的帮助链接,见安装非conda包-Managing Conda packages

【讨论】:

    【解决方案3】:

    如果在与 conda 相同的环境中使用 pip 安装它,则 pip 的最新更改会覆盖 conda 设置,反之亦然。您必须为 pip 包创建一个单独的环境。

    【讨论】:

      猜你喜欢
      • 2016-09-03
      • 1970-01-01
      • 1970-01-01
      • 2021-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-01
      • 1970-01-01
      相关资源
      最近更新 更多