如何在 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个赞
我遇到了同样的问题。我解决它的步骤是:
转到 Anaconda 提示符并键入
conda install pip
. 这将在当前 conda 环境中安装 pip。
2.在步骤 1 之后,键入pip install pyttsx3
。
一些额外的帮助链接,请参阅安装非 conda 包 -管理 Conda 包
杨魅力
TA贡献1811条经验 获得超6个赞
在您的错误消息中:
however the ssl module in Python is not available
尝试这个:
pip install ssl
万千封印
TA贡献1891条经验 获得超3个赞
如果在与 conda 相同的环境中使用 pip 安装它,则 pip 的最新更改会覆盖 conda 设置,反之亦然。您必须为 pip 包创建一个单独的环境。
添加回答
举报
0/150
提交
取消