(May-29-2020, 05:39 PM)yasser Wrote: python -m pip install gtts
^
SyntaxError: invalid syntax
Now are you trying to run this from interactive shell(>>>).
Do it from command line cmd(Window) or Terminal(Linux).
Even if PyCharm has build install with
pip
stuff,so learn to use command line for this first.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
(del_env) E:\div_code\del_env
λ pip - V
pip 20.0 . 2 e:\div_code\del_env\lib\site - packages\pip (python 3.7 )
(del_env) E:\div_code\del_env
λ pip install gtts
Collecting gtts
Downloading .....
Successfully installed certifi - 2020.4 . 5.1 chardet - 3.0 . 4 gtts - 2.1 . 1
gtts - token - 1.1 . 3 idna - 2.9 requests - 2.23 . 0 urllib3 - 1.25 . 9
(del_env) E:\div_code\del_env
λ ptpython
>>> import gtts
>>>
>>> print (gtts.gTTS.__doc__[ 1 : 90 ])
TTS - - Google Text - to - Speech.
An interface to Google Translate's Text - to - Speech API.
>>> gtts.__version__
'2.1.1'
|