AttributeError: 'module' object has no attribute '_handlerList' 錯誤解決方法

1)當遇到問題時:url

➜ pip-9.0.1 pip list Traceback (most recent call last): File "/usr/local/bin/pip", line 9, in <module> load_entry_point('pip==9.0.1', 'console_scripts', 'pip')() File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/init.py", line 233, in main return command.main(cmd_args) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 185, in main for name in ["pip._vendor", "distlib", "requests", "urllib3"] File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/compat/dictconfig.py", line 565, in dictConfig dictConfigClass(config).configure() File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/compat/dictconfig.py", line 332, in configure del logging._handlerList[:] AttributeError: 'module' object has no attribute '_handlerList'ip

----->解決方法:cmd

➜ pip-9.0.1 cd /Library/Python/2.7/site-packages/ ➜ site-packages sudo rm -rf logging-0.4.9.6-py2.7.egg-info ➜ site-packages sudo rm -rf loggingrequests

而後就能夠了it

相關文章
相關標籤/搜索