question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named keras

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

33reactions
annanurovcommented, Apr 16, 2018

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.

30reactions
nzw0301commented, Jan 1, 2017

Did your command (: conda install keras) succeed?

keras cannot be installed by conda install keras because package not found. (my anaconda is anaconda3-4.1.1)

I recommend use pip install keras to install keras.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found