Getting ImportError while importing keras

2019-08-01 03:25发布

问题:

I have followed every step for installing keras but whenever I am trying to import keras it gives me an error No module named tensorflow. But I have already installed tensorflow.

I have two questions- 1. How can I solve this particular ImportError? 2. If possible can anyone give me a detailed step by step instruction on installing theano, tensorflow and keras? Please don't give any links to install keras because i have tried them all but they keep giving some kind of error or problem.

If possible please take a look at my other question since they are related No module named keras

Thank You

回答1:

Try sudo -H python -m pip install --upgrade --force-reinstall tensorflow