Installing Keras package with conda install
11,060
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
Author by
K.Wanter
Updated on June 15, 2022Comments
-
K.Wanter almost 2 years
I have installed
Anaconda
package on a server as a user account, then I installedkeras
byconda install keras
,but after installation, when I runimport keras
, it raisedno module names keras
,anyone can help? thanks very much! -
K.Wanter over 7 yearsthen I tried
which activate
, it gives/projdata3/info_fil/wangtao/conda/bin/activate
, then I cd to/projdata3/info_fil/wangtao/conda/bin
and runsource activate keras
again, this time it raisedBASH_VERSION: Undefined variable
-
Mike Müller over 7 yearsAre using a shell that is not
bash
? Change tobash