I am quite confuse as I tried to install it using the command $ pip install pyTelegramBotAPI on VS terminal but it does not seem to work https://i.stack.imgur.com/ZYXMA.png (image of the error), I tried looking up for telegrambot extension but could not any in VS. Please guide me through. Thank you ~ I really want to import telebot but it does not work till I install it ( i assume)
Asked
Active
Viewed 3,227 times
-1
-
the problem is the `$`, not `pyTelegramBotAPI`, where does the `$` originates – rioV8 May 21 '22 at 18:29
-
Hi, about the $, i just copy that whole command from the internet. Even without the $, I still won't be able to install it. So i do not know how to install – bryan May 22 '22 at 11:07
-
1the `$` is meant to indicate the CLI prompt and should not be copied. What is the error you get without the `$` – rioV8 May 22 '22 at 15:13
-
Program 'pip.exe' failed to run: Access is deniedAt line:1 char:1 + pip install pyTelegramBotAPI + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~. At line:1 char:1 + pip install pyTelegramBotAPI + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed – bryan May 23 '22 at 01:27
-
Here's the error they gave ~ – bryan May 23 '22 at 01:27
-
@bryan Can the error report be completely added to the article? – MingJie-MSFT May 23 '22 at 05:44
-
What article? I do not understand what do you mean. Sorry – bryan May 25 '22 at 04:30
-
@bryan As the picture shows, I can't reproduce the problem you encounter. Can you update your error code in the form of a picture? Or restart a new issue. https://imgur.com/a/IJQkhSi – MingJie-MSFT May 26 '22 at 01:09
-
imgur.com/VDvgW56, Hello, here the picture. @MingJie-MSFT – bryan May 28 '22 at 14:19
2 Answers
0
For Windows, in Command Prompt (Admin) try to run pip install using the Python executable:
python -m pip install pyTelegramBotAPI

MingJie-MSFT
- 5,569
- 1
- 2
- 13
-
https://imgur.com/m4qZ4jY, does that mean i have installed it successfully? Also if it was successful, does that mean i have also install it in visual code? – bryan May 30 '22 at 02:29
-
@bryan yes. And if you choose the correct interpreter in vscode, the packgae can be recognized as well. – MingJie-MSFT May 30 '22 at 02:36
0
You have the wrong information or copied the wrong symbol here. "$" it means linux bash. Don't copy that. Do you use windows: press Win key. type cmd Enter type *pip install pytelegrambotapi hi Enter Everything will be OK. If linux. User virtualenv sudo apt-get install -y python3-venv python3 -m venv source \bin\activate pip install pytelegrambotapi OKKK. have fun. linux have some problems with pytelegrambotapi so just use virtualenv. To deactivate type deactivate or source \bin\deactivate. Later...

Avazbek Vaxobov
- 61
- 1
- 6