No module named keras
See original GitHub issueI have installed Anaconda
package on a server as a user account, then I use conda install keras
to install keras
on it, but then when I run import keras
, it raised no module named keras
, anyone can help? thanks very much!
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (1 by maintainers)
Top Results From Across the Web
ImportError: No module named 'keras' - Stack Overflow
Launch Anaconda Navigator. Go to the Environments tab. · Select 'Not installed', and type in 'tensorflow'. · Then, tick 'tensorflow' and do the ......
Read more >(Fixed) ModuleNotFoundError: No Module Named 'Keras'
How to Fix “ModuleNotFoundError: No module named 'keras'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >ModuleNotFoundError No module named keras - Edureka
Hi@akhtar,. I think this problem is related to the environment. Your TensorFlow module may be installed in a different env. and Keras is...
Read more >No module named keras : Step by Step Fix
This error (no module named keras) occurs only when either keras is not installed or its path is not properly set. Well, In...
Read more >ModuleNotFoundError: No module named 'keras'
It is because your TensorFlow module might be installed in an environment that is different from the environment where Keras is installed in....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the a similar problem. Following steps helped
1- Open Anaconda Prompt with admin privileges (in windows: right click -> open as admin, etc) 2- Type the command to install you package, e.g.:
conda install -c conda-forge keras tensorflow
If not sure about package name, search web for it.3- Test if the package was installed correctly. E.g. launch Spider from Anaconda and use command
import keras
4- Restart Rstudio (Session -> Restart R) before trying
library(keras)
PS: now you have to deal with TF’s internal errors and warnings like
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX
But, that’s a whole different story.Did your command (:
conda install keras
) succeed?keras cannot be installed by
conda install keras
because package not found. (my anaconda isanaconda3-4.1.1
)I recommend use
pip install keras
to install keras.