0

hello I'm a beginner @ learning python.I'm trying to make a chatbot in Telegram but I'm constanly recieving an error and I don't know how to solve the problem .I've checked python in Command promp And it is installed (python 2.7)

 $ pip install-telegram-bot
 File "<stdin>", line 1
 $ pip install-telegram-bot
 ^
 SyntaxError: invalid syntax
apadana
  • 13,456
  • 15
  • 82
  • 98
Keipro
  • 95
  • 1
  • 1
  • 13

1 Answers1

2

You got a typo. Redundant dash.

Run pip install telegram-bot

User Guide how to install packages with pip.

UPDATE: You should not be running pip commands in python prompt. You should run them in terminal. Also you should not copy $ sign.

To sum up: Open Terminal -> run pip install telegram-bot -> open python -> you are good to go.

vishes_shell
  • 22,409
  • 6
  • 71
  • 81