Forums

error in installing a package

I opened a bash command prompt, and typed:

pip3.7 install python-telegram-bot File "<stdin>", line 1 pip3.7 install python-telegram-bot ^ SyntaxError: invalid syntax

also:

pip install python-telegram-bot File "<stdin>", line 1 pip install python-telegram-bot ^ SyntaxError: invalid syntax

looks like you are running it in python shell, not the bash one.