Python项目异常问题和定位排查总结汇总

如上图问题,问题则定位为于

ImportError: cannot import name '_version _predates' from 'seaborn.utils' (/usr/local/lib/python3.9/site-packages/seaborn/utils.py)

则排查是seaborn包的问题;

如上图,则问题定位于

AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap'

则是matplotlib包的问题,没有register_cmap这个属性;大概率是包版本的问题;这里面也是有堆栈信息的,可以查看堆栈信息;

 

 

 

 

posted @ 2025-06-26 18:51  郭慕荣  阅读(30)  评论(0)    收藏  举报