I'm having trouble using gTTS (Google Text to Speech) on my Raspberry Pi 3. I just did
sudo pip3 install gTTS
to install it. But when I run my code, I find this error:
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'
To solve the problem, I did
sudo easy_install --upgrade pip
Then I uninstalled and installed gtts again, but the problem persists.
Many thanks for your help!: (
PS: I installed python-vlc and mutagen to create working gTTS (as it was on a Windows device)
source share