pip install pyTelegramBotAPI
Добавлено: 17 фев 2018, 20:21
Всем привет, пытаюсь добавить библиотеку в питон, но что бы не пытался ничего не выходит, поискав в интернете найти решений не смог
pip3
apt install python-pip
apt install python-setuptools
sudo pip install pyTelegramBotAPI
pip -V
pip 9.0.1 from /home/msuser/.local/lib/python2.7/site-packages (python 2.7)
pip install --upgrade pip
Код: Выделить всё
darkfenix@darkfenix ~ pip install --upgrade pip
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 837kB/s
Installing collected packages: pip
Successfully installed pip-8.1.1
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
darkfenix@darkfenix ~ inxi -S
System: Host: darkfenix Kernel: 4.14.17-041417-generic x86_64 (64 bit) Desktop: Cinnamon 3.6.7
Distro: Linux Mint 18.3 Sylvia
inxi -S
Код: Выделить всё
wget https://pypi.python.org/packages/6c/54/f7e9cea6897636a04e74c3954f0d8335cc38f7d01e27eec98026b049a300/setuptools-38.5.1.zip
unzip setuptools-38.5.1.zip
cd setuptools-38.5.1
sudo python setup.py install
Код: Выделить всё
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz
tar -xzvf pip-9.0.1.tar.gz
cd pip-9.0.1
sudo python setup.py install
Код: Выделить всё
▶ pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg (python 2.7)
Код: Выделить всё
~/Документы/pyTelegramBotAPI $ sudo python setup.py install
[sudo] пароль для selderey:
running install
running bdist_egg
running egg_info
writing requirements to pyTelegramBotAPI.egg-info/requires.txt
writing pyTelegramBotAPI.egg-info/PKG-INFO
writing top-level names to pyTelegramBotAPI.egg-info/top_level.txt
writing dependency_links to pyTelegramBotAPI.egg-info/dependency_links.txt
reading manifest file 'pyTelegramBotAPI.egg-info/SOURCES.txt'
writing manifest file 'pyTelegramBotAPI.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/telebot
copying telebot/apihelper.py -> build/lib.linux-x86_64-2.7/telebot
copying telebot/__init__.py -> build/lib.linux-x86_64-2.7/telebot
copying telebot/util.py -> build/lib.linux-x86_64-2.7/telebot
copying telebot/types.py -> build/lib.linux-x86_64-2.7/telebot
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/telebot
copying build/lib.linux-x86_64-2.7/telebot/apihelper.py -> build/bdist.linux-x86_64/egg/telebot
copying build/lib.linux-x86_64-2.7/telebot/__init__.py -> build/bdist.linux-x86_64/egg/telebot
copying build/lib.linux-x86_64-2.7/telebot/util.py -> build/bdist.linux-x86_64/egg/telebot
copying build/lib.linux-x86_64-2.7/telebot/types.py -> build/bdist.linux-x86_64/egg/telebot
byte-compiling build/bdist.linux-x86_64/egg/telebot/apihelper.py to apihelper.pyc
byte-compiling build/bdist.linux-x86_64/egg/telebot/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/telebot/util.py to util.pyc
byte-compiling build/bdist.linux-x86_64/egg/telebot/types.py to types.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pyTelegramBotAPI.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pyTelegramBotAPI.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pyTelegramBotAPI.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pyTelegramBotAPI.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pyTelegramBotAPI.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/pyTelegramBotAPI-3.5.2-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing pyTelegramBotAPI-3.5.2-py2.7.egg
Copying pyTelegramBotAPI-3.5.2-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pyTelegramBotAPI 3.5.2 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/pyTelegramBotAPI-3.5.2-py2.7.egg
Processing dependencies for pyTelegramBotAPI==3.5.2
Searching for requests
Reading https://pypi.python.org/simple/requests/
Download error on https://pypi.python.org/simple/requests/: unknown error (_ssl.c:2831) -- Some packages may not be found!
Couldn't find index page for 'requests' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: unknown error (_ssl.c:2831) -- Some packages may not be found!
No local packages or working download links found for requests
error: Could not find suitable distribution for Requirement.parse('requests')
Не хватает еще одного зависимого модуля, о чем он тебе и говорит