linux中error:unpackingofarchivefailedonfile/usr/lib/python2.7如何处理
这篇文章主要介绍linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
镇远网站建设公司成都创新互联公司,镇远网站设计制作,有大型网站制作公司丰富经验。已为镇远超过千家提供企业网站建设服务。企业网站搭建\外贸营销网站建设要多少钱,请找那个售后服务好的镇远做网站的公司定做!
错误日志
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
以上是“linux中error: unpacking of archive failed on file /usr/lib/python2.7如何处理”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!
当前文章:linux中error:unpackingofarchivefailedonfile/usr/lib/python2.7如何处理
链接分享:http://myzitong.com/article/pgghsd.html