我压根儿导入错误:无法导入名称“InsecureRequestWarning”(PYTHON3 | RPI3 |腹围)
sudo pip3 install gTTS
进行安装。但是,当我运行我的代码,我发现这个错误:
File "interface.py", line 7, in <module>
from gtts import *
File "/usr/local/lib/python3.4/dist-packages/gtts/\__init__.py", line 2, in <module>
from .tts import gTTS
File "/usr/local/lib/python3.4/dist-packages/gtts/tts.py", line 4, in <module>
from requests.packages.urllib3.exceptions import InsecureRequestWarning
ImportError: cannot import name 'InsecureRequestWarning'
要尽量解决我做
sudo easy_install --upgrade pip
然后,我已经卸载的问题,并重新安装腹围但问题仍然存在。
非常感谢您的帮助! :(
PS:我已经安装了Python-VLC和诱变剂,使工作腹围(像我一样在Windows设备上)
不幸的是,这是行不通的。 'ImportError:无法导入名称'InsecureRequestWarning''仍然存在。 – jengeb