安装pip工具
yum -y install python-pip
如果安装失败,需要先安装epel-release
yum -y install epel-release
yum -y install python-pip
升级pip的版本
pip install --upgrade pip
报错后执行下面更新
python -m pip install --upgrade pip采用手工安装后通过docker-compose version 显示没有安装(这是由于网络原因导致下周失败)
pip安装后报
“ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed?out”这是由于下载延迟导致,
可以采用“pip --default-timeout=200 install -U?docker-compose”。pip安装报
类似” pkg_resources.DistributionNotFound: backports.ssl-match-hostname>=3.5”错误,
执行“pip install --upgrade backports.ssl_match_hostname”即可完成backports.ssl-match-hostname的更新。pip安装报
类似” Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall” 错误,
请” sudo pip install --ignore-installed requests”更新模块,.pip安装报
类似” ipapython 4.5.4 has requirement dnspython>=1.15, but you'll have dnspython 1.12.0 which is incompatible” 错误,
请” pip install psutil”pip安装报
类似” Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Y6TDnU/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-pVb4Xe/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-Y6TDnU/psutil/”错误,
请” yum install python-devel”
文章评论