错误日志
python-urllib3-1.10.2-3.el7.noarch.rpm | 101 kB 00:00:0 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-urllib3-1.10.2-3.el7.noarch Error unpacking rpm package python-urllib3-1.10.2-3.el7.noarch error: unpacking of archive failed on file /usr/lib/python2.7/site-packages/urllib3/packages/ssl_match_hostname: cpio: rename Verifying : python-urllib3-1.10.2-3.el7.noarch Failed: python-urllib3.noarch 0:1.10.2-3.el7 Complete!
解决方法
PIP已经安装了对应的版本包,此时yum安装的rpm包与pip里的冲突,先把pip里的包卸载掉再用yum 重新安装
[root@compute01 home]# pip freeze|grep urllib3 You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. urllib3==1.22 [root@compute01 home]# pip uninstall urllib3 [root@compute01 home]# yum install python-urllib3
转载:http://luozn.top/2018/05/08/321/