我在debian 8下
我试图安装:python-telegram-bot(https://github.com/python-telegram-bot/python-telegram-bot)但是当我执行“python setup.py install”时它会出错:
Installed /usr/local/lib/python2.7/site-packages/python_telegram_bot-5.3.1-py2.7.egg
Processing dependencies for python-telegram-bot==5.3.1 Searching for certifi
Reading https://pypi.python.org/simple/certifi/
Download error on https://pypi.python.org/simple/certifi/: unknown url type: https -- Some packages may not be found!
所以我尝试使用 open-ssl 重新安装 python 2.7.13:
apt-get install opensll
apt-get install libssl-dev
我编辑了 /Modules/setup.dist :
# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable: SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
之后,我运行 ./configure 和 make && make install
我有错误:安装期间:
Makefile:1081: recipe for target 'libinstall' failed make: *** [libinstall]
Error 1
并且 python-telegram-bot 不会编译...
有人可以有一个想法吗?
非常感谢你。问候