I tried to import the Keras library in Spyder but it throws an error:
Traceback (most recent call last):
File "<ipython-input-8-c74e2bd4ca71>", line 1, in <module>
import keras
ModuleNotFoundError: No module named 'keras'
Then I created a virtual environment and installed Keras in that:
cd virtualenv/
virtualenv -p python3.5 py-keras
source py-keras/bin/activate
pip install -q -U pip setuptools wheel
pip install keras
If I'm editing in that virtual env with the terminal I can import Keras successfully, whereas in Spyder it still throws the same error.