树莓派安装gTTS运行运行时遇到了如下错误:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
ImportError: cannot import name InsecureRequestWarning
这是因为已经安装的requests库和gTTS版本对应不上。
解决: 更新requests库,
pip install -U requests
本文介绍了一个在树莓派上安装gTTS过程中遇到的关于requests库的错误,并提供了具体的解决方案,即通过更新requests库来解决版本不匹配的问题。
树莓派安装gTTS运行运行时遇到了如下错误:
from requests.packages.urllib3.exceptions import InsecureRequestWarning
ImportError: cannot import name InsecureRequestWarning
这是因为已经安装的requests库和gTTS版本对应不上。
解决: 更新requests库,
pip install -U requests
1664
1233

被折叠的 条评论
为什么被折叠?
