为了账号安全,请及时绑定邮箱和手机立即绑定

如何在 Anaconda3 中安装 pyttsx?

如何在 Anaconda3 中安装 pyttsx?

四季花海 2022-06-28 16:21:38
如何在 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 pyttsx3C:\Users\Ramesh\Anaconda3\Scripts>pip install pyttsx3WARNING: 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)
查看完整描述

3 回答

?
哈士奇WWW

TA贡献1799条经验 获得超6个赞

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

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

2.在步骤 1 之后,键入pip install pyttsx3 。

一些额外的帮助链接,请参阅安装非 conda 包 -管理 Conda 包


查看完整回答
反对 回复 2022-06-28
?
杨魅力

TA贡献1811条经验 获得超6个赞

在您的错误消息中:

however the ssl module in Python is not available

尝试这个:

pip install ssl


查看完整回答
反对 回复 2022-06-28
?
万千封印

TA贡献1891条经验 获得超3个赞

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



查看完整回答
反对 回复 2022-06-28
  • 3 回答
  • 0 关注
  • 584 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信