Issue Developing a Telegram Chatbot with Python

Hello everyone, I’m new to Python and currently trying to build a Telegram chatbot. Despite verifying that Python (version 2.7) is correctly installed and accessible via the command prompt, I keep facing a recurring error that I can’t seem to fix. I’m not sure why the installation or execution fails, and I would appreciate any guidance on resolving this issue. Below is a modified error output from my installation attempt:

$ pip install-telechat-bot
File "<interactive>", line 1
$ pip install-telechat-bot
       ^
SyntaxError: unexpected character after operator

The error appears to originate from directly typing the command with the dollar sign and improper command spacing. I encountered a similar issue when I first started developing my chatbot. Make sure you remove any dollar signs from your input and verify that your command syntax is correct. This problem may also be exacerbated by using Python 2.7, which is outdated. Using Python 3.x along with the right pip command can help alleviate these issues and ensure smoother installation and execution.