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
  • 11,650
  • 10
  • 73
  • 95
Keipro
  • 85
  • 1
  • 12

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
  • 20,161
  • 6
  • 65
  • 77