Reputation: 1059
I have installed Anaconda
package on a server as a user account, then I installed keras
by conda install keras
,but after installation, when I run import keras
, it raised no module names keras
,anyone can help? thanks very much!
Upvotes: 6
Views: 11521
Reputation: 85422
One solution could be creating a conda environment:
conda create -n keras python=3.5
Now activate it:
conda activate keras
and install keras:
(keras)$ conda install keras
Try if it works:
(keras)$ python
>>> import keras
Upvotes: 6
Reputation: 546
Once creating the Conda environment, use the command below to list available environment:
conda info -e
Once activate your conda environment, you can try to install Keras by
pip install keras==version_your_desired.
Then use
pip freeze
to check the version.
Upvotes: 0