Search code examples
pythonfailed-installationgoogle-text-to-speech

Installation error : pip install gTTS (Google-Text-To-Speech) error


Getting syntax error while running the following command on terminal:

pip install gTTS File "", line 1 pip install gTTS ^

enter image description here


Solution

  • I mentioned in my reply to sehafoc I tried running the command from shell and started getting another error "no module name pip", so I installed pip by running following commands:

    1. Downloaded pip script $ curl https://bootstrap.pypa.io/get-pip.py > get-pip.py

    2. Executed the pip script by running following command $ sudo python get-pip.py

    3. Install gTTS module $ sudo pip install gTTS