Reputation: 558
I installed pycharm-2016.1.4 in my PC running Ubuntu 14.04. I have installed Keras (a Python package) using pip install keras
and PyCharm can find it before. But it cannot find Keras now. I do not modify any settings, so this problem may be wired. My Python version is Python 2.7.
I use pip list
to verify that I have Keras installed:
But check this package in PyCharm by using: Settings -> Project -> Project Interpreter. Keras is NOT in the package list. (The interpreter used is the same as the result of which python
in terminal).
Upvotes: 8
Views: 30636
Reputation: 11
After installing tensorflow and keras, try the following:
import keras as ks
from keras.models import Sequential
from keras.layers import LSTM, Dense
Upvotes: 1
Reputation: 1
I am running through a training video series and, with Conda installed on my Centos 7 system, I could not get Keras to load properly. My solution was to use VirtualEnv for my Python Interpreter. I followed the steps here: https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter
Upvotes: 0
Reputation: 1
My solution:
if you ever have installed in python:
Upvotes: 0
Reputation: 946
To clearify Giordano's answer:
Upvotes: 0
Reputation: 558
I do not know what happened, but the problem solved with the following steps.
pip install keras
Then I can import keras
in pycharm.
NOTE: It is strange since I have keras installed but cannot find it in Project Interpreter's package list.
Upvotes: 2
Reputation: 5570
This is strange, but you can install Keras directly through Pycharm.
You can follow this steps:
Please let me know if this procedure solve your issue.
Upvotes: 9