2017-08-08 3 views
1

Ich versuche Keras, Theano und Tensorflow auf Anaconda zu installieren. Im Folgenden sind die Schritte, die ich verfolgt haben: Schritt 1: ein Umfeld geschaffen, 'nnet'Problem Installation von Keras mit Tensorflow-Backend auf Anaconda

conda create -nnnet python=3.5 anaconda 

Schritt 2:

activate nnet 

Schritt 3: Spyder Installation auf die neue Umgebung

conda install spyder 

Schritt 4: Installieren der Pakete

pip install theano 
pip install tensorflow 
pip install keras 

Schritt 5: Update alle Pakete

conda update --all 

Schritt 6: Lauf spyder in nnet Umgebung

Nun, wenn ich meinen Code ausführen, die keras zu importieren versucht, bekomme ich diesen Fehler :

ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

Original error was: DLL load failed: The specified module could not be found.

Dann habe ich numpy deinstalliert und neu installiert. Der Fehler besteht jedoch weiterhin.

Auch bei der Überprüfung der Pakete in Anaconda Navigator unter Nnet-Umgebung, sehe ich Tensorflow und Theano fehlt. Here is the list I am referring to

Ich habe diese Schritte vor und wurden erfolgreich eingesetzt, bevor diese Pakete verwendet. (Importiert und in Code verwendet wird) Aber ich bin nicht in der Lage jetzt das Problem herauszufinden. Jede Art von Hilfe oder Anweisung wäre willkommen.

Antwort

1

Ich konnte es lösen, indem die Befehle in Schritt 4 ändern:

Schritt 4:

conda install -c anaconda theano 
conda install -c conda-forge tensorflow 
conda install -c conda-forge keras 

Die Pakete jetzt funktionieren und ich kann sie importieren.

Verwandte Themen