AttributeError: module 'tensorflow' has no attribute 'keras' in conda prompt

后端 未结 2 1983
孤独总比滥情好
孤独总比滥情好 2021-01-28 17:59

*I try to install tensorflow and keras

I installed tensorflow and I imported it with no errors

Keras is installed but I can\'t import it *

(base)         


        
2条回答
  •  旧巷少年郎
    2021-01-28 18:33

    don't forget to make an env for using tensorflow. it needs it's own enviroment. when i used conda i had some trouble trying to use tf and it was mainly because i didn't set it up in the right way.

    https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands

提交回复
热议问题