AttributeError: 'Functional' object has no attribute 'uses_learning_phase'
Could you please share some snippets of your code where the error arises? Generally attribute errors are caused when documentations are updated and that specific attribute is no longer present for the version! Importing new libraries (which you have tried already) or lowering the library version can help but for a definitive answer the code snippet is required!
P.S Sorry for posting this as an answer, I can't comment yet haha.