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
Share:
11,060
K.Wanter
Author by

K.Wanter

Updated on June 15, 2022

Comments

  • K.Wanter
    K.Wanter almost 2 years

    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!

  • K.Wanter
    K.Wanter over 7 years
    then I tried which activate, it gives /projdata3/info_fil/wangtao/conda/bin/activate, then I cd to /projdata3/info_fil/wangtao/conda/bin and run source activate keras again, this time it raised BASH_VERSION: Undefined variable
  • Mike Müller
    Mike Müller over 7 years
    Are using a shell that is not bash? Change to bash