修复:pip 'module' object has no attribute '_handlerList'

栏目: 编程工具 · 发布时间: 7年前

修复:pip 'module' object has no attribute '_handlerList'

发表人: 测者陈磊

1 0 0

在运行pip install xxx

出现 ‘module’ object has no attribute ‘_handlerList’

Traceback (most recent call last):
 File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pip", line 11, in  
load_entry_point('pip==9.0.1', 'console_scripts', 'pip')()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/__init__.py", line 233, in main
return command.main(cmd_args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py", line 185, in main
for name in ["pip._vendor", "distlib", "requests", "urllib3"]
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/compat/dictconfig.py", line 565, in dictConfig
dictConfigClass(config).configure()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/compat/dictconfig.py", line 332, in configure
del logging._handlerList[:]
AttributeError: 'module' object has no attribute '_handlerList' 
 
解决
 
方法1、升级pip
easy_install –upgrade pip
方法2、
pip install  requests==2.6

最新发表 最多点赞 最近回复

点击发表评论

暂无评论,快来抢沙发哦~

文章作者

修复:pip 'module' object has no attribute '_handlerList'

测者陈磊

发私信

京东测试架构师,AJPECSS编委。拥有多年的测试及测开经验,主导了京东工程生产力平台以及设计和研发,熟悉质量保障流程,对测试技术、方法有深入的研究。双态IT联盟《敏捷测试白皮书》特邀专家。北方工大企业导师。2018TID特约讲师、云测峰会特约讲师的,TID人工智能特约讲师。《决战618:探秘京东技术取胜之道》、《京东质量团队转型实践-从测试到测试开发的蜕变 》的作者,论文近30篇,专利20余项目

推荐图书


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

C++ How to Program (5th Edition) (How to Program)

C++ How to Program (5th Edition) (How to Program)

Harvey & Paul) Deitel & Associates / Prentice Hall / 2005-01-05 / USD 98.00

With over 250,000 sold, Harvey and Paul Deitel's C++ How to Program is the world's best-selling introduction to C++ programming. Now, this classic has been thoroughly updated! The Deitels' groundbreak......一起来看看 《C++ How to Program (5th Edition) (How to Program)》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具