I tried to code on Pycharm, but when I use from keras import backend as K
it throws an import error like "cannot import name backend". But I can do it on terminal.
How can I fix this?
I tried to code on Pycharm, but when I use from keras import backend as K
it throws an import error like "cannot import name backend". But I can do it on terminal.
How can I fix this?
Are you sure your PyCharm sees the same Python environment as what you are using in Terminal?
See if this possibly works for you: use tensorflow on pyCharm
I got the same problem: Check here:Pycharm cannot find installed packages: keras
After adding new package to project interpreter, you need to quit Pycharm and restart it again.