解决方法
在spyder中将 Tools->preferences -> python interpreter中的User Module Reloader关掉
Spyder运行tensorflow第一次运行没问题,下一次运行出现TypeError: A Message class can only inherit from Message
将Enable UMR、Show reloaded modules list 选项取消!!!
然后restart kernel即可!
Spyder运行tensorflow第一次运行没问题,下一次运行出现TypeError: A Message class can only inherit from Message

相关文章:

  • 2021-12-13
  • 2021-08-01
  • 2021-07-29
  • 2021-11-30
  • 2022-12-23
  • 2021-05-09
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-07-26
  • 2021-11-04
  • 2022-01-21
  • 2021-07-02
相关资源
相似解决方案