【发布时间】:2019-02-02 13:04:15
【问题描述】:
我正在安装一个依赖于 aiohttp 的 python 包,版本 >=3。 pip3 search aiohttp 返回:
aiohttp (3.3.2) - Async http client/server framework (asyncio)
INSTALLED: 2.3.10
LATEST: 3.3.2
那么为什么pip3 install --upgrade --user aiohttp 回复说它已经是最新的,而pip3 install --user aiohttp==3.3.2 说:
Could not find a version that satisfies the requirement aiohttp==3.3.2 [... snip ...] No matching distribution found for aiohttp==3.3.2
我正在运行 Ubuntu 16.04、Python v.3.5.2 和 pip3 v.18.0。后者是从apt包python3-pip升级到系统的v.8.1.1。 Pip3 本地升级使用pip3 upgrade --user,以免与系统包冲突。
【问题讨论】:
-
pip 搜索糟糕的原因有很多,可能很快就会被删除:github.com/pypa/pip/issues/5216
-
@wim - 我明白了。这与 jwodder 的回答(如下)一起澄清了问题。谢谢。
标签: python-3.x pip