首页 > 解决方案 > 代理后面的 pip 9.0.1 升级

问题描述

这个命令:

pip.exe --proxy=<my proxy> install python_telegram_bot-10.1.0-py2.py3-none-any.whl

给出错误:

Collecting future>=0.16.0 (from python-telegram-bot==10.1.0)
  Could not fetch URL https://pypi.python.org/simple/future/: There was a problem confirming the ssl certificate: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement future>=0.16.0 (from python-telegram-bot==10.1.0) (from versions: )
No matching distribution found for future>=0.16.0 (from python-telegram-bot==10.1.0)

我发现 SSL 证书的问题是因为我的 pip 版本是 9.0.1。所以我决定按照pip 安装说明中的说明进行升级。

我试过这个:

python.exe -m pip --proxy=<my proxy> install --trusted-host=pypi.python.org --upgrade pip

结果:

Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590) - skipping
Requirement already up-to-date: pip in c:\python27\lib\site-packages
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

这建议我使用导致问题的确切命令。

有没有办法解决它?

标签: pythonwindowspip

解决方案


推荐阅读