【问题标题】:AttributeError: module 'sip' has no attribute 'setapi'AttributeError:模块“sip”没有属性“setapi”
【发布时间】:2021-05-07 03:09:23
【问题描述】:

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

对于这种不兼容有一些新的解决方案吗?

【问题讨论】:

    标签: python matplotlib python-3.8


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2021-01-25
      • 2018-04-14
      • 2019-02-18
      • 1970-01-01
      • 2020-01-01
      • 2019-07-20
      • 2021-11-05
      • 2021-11-04
      相关资源
      最近更新 更多