解决TypeError: while_loop() got an unexpected keyword argument ‘maximum_iterations‘

红太狼 2022-12-06 01:08 238阅读 0赞

keras、tensorflow 版本问题比较烦人

keras 版本太高

  1. TypeError: while_loop() got an unexpected keyword argument 'maximum_iterations'

解决办法

  1. pip install keras==2.1 -i https://pypi.douban.com/simple

keras 版本太低,目前不影响使用,但建议使用2.1.6

  1. ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.
  2. We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
  3. keras-preprocessing 1.0.1 requires keras>=2.1.6, but you'll have keras 2.1.0 which is incompatible.
  4. keras-applications 1.0.2 requires keras>=2.1.6, but you'll have keras 2.1.0 which is incompatible.

解决办法

  1. pip install keras==2.1.6 -i https://pypi.douban.com/simple

欢迎大家交流学习,任何问题都可以留言

发表评论

表情:
评论列表 (有 0 条评论,238人围观)

还没有评论,来说两句吧...

相关阅读