pip 9.0.1升级代理后面

时间:2018-05-07 12:55:44

标签: python windows pip

此命令:

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 installation instructions的说明升级它。

我试过了:

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.

这表明我使用导致问题的确切命令。

有办法以某种方式解决它吗?

0 个答案:

没有答案