python - 代理后面的 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.
这建议我使用导致问题的确切命令。
有没有办法解决它?
解决方案
推荐阅读
- python - nvdssr.so:未定义符号:g_return_if_fail_warning
- reactjs - React-js:对象作为 React 子项无效
- flutter - Flutter中如何在ListView.builder中使用ListView
- reactjs - 在缩小的反应构建上强制换行
- javascript - 在对象中转换字符串(对象的对象)
- linux - 有效的重新压缩方法(以最高压缩率)以更好的压缩率压缩现有文件
- python - 如何将 CSV 文件导入 PostgresSQL 数据库?
- python - 获得滚动百分位数排名的快速方法
- java - 在 Microsoft Graph API 中添加内联图像
- powerbi - Power BI 条形图和两个折线图开始默认为目标起始线