首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >python无法安装python-telegram-bot `搜索证书`错误

python无法安装python-telegram-bot `搜索证书`错误
EN

Stack Overflow用户
提问于 2016-12-04 11:59:13
回答 1查看 246关注 0票数 1

我尝试使用the instructions found here安装python-telegram-bot

当我运行python setup.py install时,我得到的错误信息如下:

代码语言:javascript
复制
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')

我可以通过网络代理访问互联网,我可以通过wgetgit正常工作。我在.bashrc中设置了环境网络代理用户名、密码变量。

如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2021-08-31 00:02:32

当我试图安装Matplotlib工具时,我遇到了一个类似的错误,“找不到‘certifi’的索引页”。我的解决方案是安装pip install certifi的Certifi工具。

我的运行时环境:

操作系统: Ubuntu 16.04

版本:Python 3.6

核心硬件: Nvidia TX2

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40955224

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档