K
K
kirzhq2021-07-21 22:43:58
Python
kirzhq, 2021-07-21 22:43:58

How to install TelegramBotAPI library for python on mac os?

after entering pip install TelegramBotAPI this pops up

[email protected] Programming % pip install TelgramBotAPI
Traceback (most recent call last):
File "/usr/local/bin/pip", line 11, in
load_entry_point('pip==21.1.3', 'console_scripts' , 'pip')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point( group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/System/ Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434,in load
return self.resolve()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
module = __import__(self.module_name, fromlist=['__name__'] , level=0)
File "/Library/Python/2.7/site-packages/pip-21.1.3-py2.7.egg/pip/__init__.py", line 1, in
from typing import List, Optional
ImportError: No module named typing

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-07-21
@kir1g

It is for the third version of python, you bet on the second

K
kirillinyakin, 2021-07-21
@kirillinyakin

pip3 install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question