PyCharm cannot find installed packages: keras
Solution 1
I do not know what happened, but the problem solved with the following steps.
- Uninstall old keras
- Re-install keras:
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.
Solution 2
This is strange, but you can install Keras directly through Pycharm.
You can follow this steps:
- Go to Settings -> Project -> Project Interpreter
- Click on plus icon in the top-right corner
- Search Keras and press on Install Package
Please let me know if this procedure solve your issue.
Dong Li
A graduate student who loves coding, loves life and love FCB.
Updated on November 08, 2021Comments
-
Dong Li over 2 years
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).