我壓根兒導入錯誤:無法導入名稱「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