python2.7.6 pip install 报logging模块错误
报错信息:
…
Traceback (most recent call last):
File “/usr/local/bin/pip”, line 9, in
load_entry_point(‘pip==7.1.2’, ‘console_scripts’, ‘pip’)()
File “/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/init.py”, line 217, in main
return command.main(cmd_args)
File “/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py”, line 182, in main
for name in [“pip._vendor”, “distlib”, “requests”, “urllib3”]
File “/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/compat/dictconfig.py”, line 565, in dictConfig
dictConfigClass(config).configure()
File “/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/compat/dictconfig.py”, line 332, in configure
del logging._handlerList[:]
AttributeError: ‘module’ object has no attribute ‘_handlerList’
…
原因:挺逗比的 开始学python 不熟悉它的很多内置模块 所以在之