AttributeError: module 'sip' has no attribute 'setapi'

AttributeError: module 'sip' has no attribute 'setapi'

我正在使用 python 3.8.5 和 matplotlib 3.3.2。从另一个问题 的答案中,我知道 matplotlib 和 python 3.8 之间存在一些不兼容问题。但是,由于一些功能更新,我需要matplotlib >3.3.1.

对于这种不兼容性,是否有一些新的解决方案?

我试了几个小时后想更新或回答我自己的问题...我仍然不知道是什么原因,但我可以通过卸载并重新安装来解决问题。

conda remove qt
conda remove pyqt 
conda install qt 
conda install pyqt

我看到了这个解决方案 here,它是针对另一个问题的。但无论如何,它可能会帮助遇到与我相同问题的其他人。