Pythoneasy_install错误的版本冲突

Python easy_install wrong version conflict

我尝试使用这样的设置工具从源代码构建 docker-compose

python setup.py develop

但是我得到以下错误:

error: requests 2.11.1 is installed but requests!=2.18.0,>=2.14.2 is required by set(['docker'])

但是 运行

pip show requests

给出以下结果:

Name: requests
Version: 2.18.4
Summary: Python HTTP for Humans.
Home-page: http://python-requests.org
Author: Kenneth Reitz
Author-email: me@kennethreitz.org
License: Apache 2.0
Location: /home/florian/.local/lib/python2.7/site-packages
Requires: certifi, chardet, idna, urllib3

是否有任何由 setuptools 或类似的东西缓存的东西?

尝试

sudo pip install --upgrade docker-compose 

git 存储库源代码中存在问题,导致我无法构建。