Ich verwende Google Cloud DataLab, das ipython-Notebook, das auf Googles Cloud Compute Engine läuft, wo ich versucht habe, das Python-Modul keras zu installieren, aber das Notebook behauptet, es nicht finden zu können. Ich benutze Python3 (und habe den Kernel nach der Installation neu gestartet). Alles scheint in einem Python2.7-Ordner installiert zu sein - könnte der Python3-Kernel es nicht finden? Hier sind einige nützliche Protokoll- und Fehlermeldungen:Modul nicht in Google Cloud DataLab gefunden
print(platform.python_version())
!pip install keras==2.1.1
!pip show keras
import keras
3.5.2
Requirement already satisfied: keras==2.1.1 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: pyyaml in /usr/local/lib/python2.7/dist-packages (from keras==2.1.1)
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from keras==2.1.1)
Requirement already satisfied: scipy>=0.14 in /usr/local/lib/python2.7/dist-packages (from keras==2.1.1)
Requirement already satisfied: numpy>=1.9.1 in /usr/local/lib/python2.7/dist-packages (from keras==2.1.1)
Name: Keras
Version: 2.1.1
Summary: Deep Learning for Python
Home-page: https://github.com/fchollet/keras
Author: Francois Chollet
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires: pyyaml, six, scipy, numpy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-49-02979b1fc374> in <module>()
2 get_ipython().system('pip install keras==2.1.1')
3 get_ipython().system('pip show keras')
----> 4 import keras
ImportError: No module named 'keras'