我尝试使用the instructions found here安装python-telegram-bot。
当我运行python setup.py install时,我得到的错误信息如下:
creating 'dist/python_telegram_bot-5.2.0-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 python_telegram_bot-5.2.0-py2.7.egg
Copying python_telegram_bot-5.2.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding python-telegram-bot 5.2.0 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/python_telegram_bot-5.2.0-py2.7.egg
Processing dependencies for python-telegram-bot==5.2.0
Searching for certifi
Reading https://pypi.python.org/simple/certifi/
Download error on https://pypi.python.org/simple/certifi/: [Errno 101] Network is unreachable -- Some packages may not be found!
Couldn't find index page for 'certifi' (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/: [Errno 101] Network is unreachable -- Some packages may not be found!
No local packages or download links found for certifi
error: Could not find suitable distribution for Requirement.parse('certifi')我可以通过网络代理访问互联网,我可以通过wget或git正常工作。我在.bashrc中设置了环境网络代理用户名、密码变量。
如何解决这个问题?
发布于 2021-08-31 00:02:32
当我试图安装Matplotlib工具时,我遇到了一个类似的错误,“找不到‘certifi’的索引页”。我的解决方案是安装pip install certifi的Certifi工具。
我的运行时环境:
操作系统: Ubuntu 16.04
版本:Python 3.6
核心硬件: Nvidia TX2
https://stackoverflow.com/questions/40955224
复制相似问题