Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Keras package with conda install

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!

like image 890
K.Wanter Avatar asked Jan 01 '17 12:01

K.Wanter


People also ask

How do I install Anaconda keras on my computer?

conda install -c anaconda keras-gpu If you want to use your CPU to built models, execute the following command instead: conda install -c anaconda keras A lot of computer stuff will start happening.

What is the best IDE for Keras in Conda environment?

Spyder is an IDE for executing python applications. Let us install this IDE in our conda environment using the below command − We have already known the python libraries numpy, pandas, etc., needed for keras. You can install all the modules by using the below syntax −

How do I install Keras and TensorFlow?

To install Keras & Tensorflow GPU versions, the modules that are necessary to create our models with our GPU, execute the following command: conda install -c anaconda keras-gpu. If you want to use your CPU to built models, execute the following command instead: conda install -c anaconda keras.

How to install keras&TensorFlow on Linux?

8. To install Keras & Tensorflow GPU versions, the modules that are necessary to create our models with our GPU, execute the following command: conda install -c anaconda keras-gpu. If you want to use your CPU to built models, execute the following command instead: conda install -c anaconda keras. A lot of computer stuff will start happening.


1 Answers

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
like image 192
Mike Müller Avatar answered Oct 09 '22 05:10

Mike Müller