dimanche 18 février 2018

Installer Keras dans Linux

Mon Linux est Linux mint (Sylvia 18.3).

Installer pip3.
$ sudo apt-get install  python3-pip

Mettre pip3 à jour.
$ python3.6 -m pip install -U pip

Installer setuptools de python.
$ python3.6 -m pip install setuptools

Installer tensorflow.
Si votre ordinateur n'a pas de carte graphique (GPU) de nvidia:
$ python3.6 -m pip install tensorflow
Si votre ordinateur a carte graphique de nvidia:
$ python3.6 -m pip installtensorflow-gpu
(Si vous avez carte graphique de nvidia, on a besoin de installer cuda8.0 pour la carte graphique. Télécharger .deb d'ici et installer cuda comme ça: $ sudo apt-get install cuda-8.0)

Installer keras.
$ python3.6-m pip install keras

Installer paquets pour python.
$ python3.6 -m pip install h5py
$ python3.6 -m pip install matplotlib
$ python3.6 -m pip install pillow
$ python3.6 -m pip install pandas

Utiliser python3.6 et exécuter logiciels de keras.:
$ sudo python3.6 xxx.py

Aucun commentaire:

Enregistrer un commentaire