Outils pour utilisateurs

Outils du site


archives:textgenrnn_install

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
textgenrnn_install_error [2020/06/08 08:22] – créée sergearchives:textgenrnn_install [2021/08/21 13:21] (Version actuelle) – [Avec GPU sur Xubuntu 18.04] serge
Ligne 1: Ligne 1:
-====== textgenrnn install error ======+====== Installation de textgenrnn ====== 
 + 
 +<WRAP center round box 80% centeralign> 
 +**{{tagpage>tal|Traitement Automatique du Langage}}** **{{tagpage>ia|Intelligence Artificielle}}**   
 +</WRAP> 
 + 
 +<WRAP center round box 80% centeralign> 
 +**Pour toutes les pages: {{tagpage>textgenrnn}}** 
 +</WRAP> 
 + 
 +**Sur un Pc sans carte CUDA avec Debian 10 Buster**, textgenrnn demande une version de tensorflow < 2.1.0 
 + 
 +=====Sans GPU===== 
 +====Problème==== 
 +<code> 
 +sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-manylinux2010_x86_64.whl 
 +</code> 
 +Mais python3-wrapt est bloqué par debian 
 +<code> 
 +sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux 
 +  Attempting uninstall: wrapt 
 +    Found existing installation: wrapt 1.10.11 
 +ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. 
 +</code> 
 + 
 +====Solution==== 
 +Dans synaptic, chercher python3-wrapt, sélectionner le paquet, puis dans Paquet --> Décocher Installé automatiquement, puis le désinstaller. D'autres paquets seront supprimés, pas grave, les réinstaller après la mise à jour de tensorflow et recocher Installé automatiquement. 
 + 
 +<code> 
 +sudo pip3 install --upgrade pip 
 +Successfully installed pip-20.1.1 
 + 
 +sudo pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-manylinux2010_x86_64.whl 
 +sudo pip3 install textgenrnn 
 +</code>
  
 <code> <code>
 sudo pip3 install --upgrade textgenrnn sudo pip3 install --upgrade textgenrnn
-Processing /root/.cache/pip/wheels/8a/df/6c/327949b0ebdf6eac64ead76d9a15cfd392565aa8321e5877c4/textgenrnn-2.0.0-py3-none-any.whl 
-Collecting tensorflow>=2.1.0 
-  Using cached tensorflow-2.2.0-cp37-cp37m-manylinux2010_x86_64.whl (516.2 MB) 
-Requirement already satisfied, skipping upgrade: keras in /usr/local/lib/python3.7/dist-packages (from textgenrnn) (2.2.4) 
-Requirement already satisfied, skipping upgrade: h5py in /usr/local/lib/python3.7/dist-packages (from textgenrnn) (2.9.0) 
-Requirement already satisfied, skipping upgrade: tqdm in /usr/local/lib/python3.7/dist-packages (from textgenrnn) (4.43.0) 
-Requirement already satisfied, skipping upgrade: scikit-learn in /usr/local/lib/python3.7/dist-packages (from textgenrnn) (0.21.2) 
-Collecting tensorflow-estimator<2.3.0,>=2.2.0 
-  Using cached tensorflow_estimator-2.2.0-py2.py3-none-any.whl (454 kB) 
-Requirement already satisfied, skipping upgrade: termcolor>=1.1.0 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.1.0) 
-Requirement already satisfied, skipping upgrade: six>=1.12.0 in /usr/lib/python3/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.12.0) 
-Processing /root/.cache/pip/wheels/62/76/4c/aa25851149f3f6d9785f6c869387ad82b3fd37582fa8147ac6/wrapt-1.12.1-cp37-cp37m-linux_x86_64.whl 
-Requirement already satisfied, skipping upgrade: gast==0.3.3 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (0.3.3) 
-Requirement already satisfied, skipping upgrade: grpcio>=1.8.6 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.19.0) 
-Requirement already satisfied, skipping upgrade: scipy==1.4.1; python_version >= "3" in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.4.1) 
-Requirement already satisfied, skipping upgrade: wheel>=0.26; python_version >= "3" in /usr/lib/python3/dist-packages (from tensorflow>=2.1.0->textgenrnn) (0.32.3) 
-Requirement already satisfied, skipping upgrade: astunparse==1.6.3 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.6.3) 
-Requirement already satisfied, skipping upgrade: google-pasta>=0.1.8 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (0.2.0) 
-Requirement already satisfied, skipping upgrade: opt-einsum>=2.3.2 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (3.2.1) 
-Requirement already satisfied, skipping upgrade: numpy<2.0,>=1.16.0 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.18.5) 
-Requirement already satisfied, skipping upgrade: keras-preprocessing>=1.1.0 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (1.1.2) 
-Requirement already satisfied, skipping upgrade: protobuf>=3.8.0 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (3.12.2) 
-Requirement already satisfied, skipping upgrade: tensorboard<2.3.0,>=2.2.0 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (2.2.2) 
-Requirement already satisfied, skipping upgrade: absl-py>=0.7.0 in /usr/local/lib/python3.7/dist-packages (from tensorflow>=2.1.0->textgenrnn) (0.7.0) 
-Requirement already satisfied, skipping upgrade: keras-applications>=1.0.6 in /usr/local/lib/python3.7/dist-packages (from keras->textgenrnn) (1.0.8) 
-Requirement already satisfied, skipping upgrade: pyyaml in /usr/local/lib/python3.7/dist-packages (from keras->textgenrnn) (3.13) 
-Requirement already satisfied, skipping upgrade: joblib>=0.11 in /usr/local/lib/python3.7/dist-packages (from scikit-learn->textgenrnn) (0.13.2) 
-Requirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.7/dist-packages (from protobuf>=3.8.0->tensorflow>=2.1.0->textgenrnn) (47.1.1) 
-Requirement already satisfied, skipping upgrade: requests<3,>=2.21.0 in /usr/lib/python3/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (2.21.0) 
-Requirement already satisfied, skipping upgrade: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.7/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (0.4.1) 
-Requirement already satisfied, skipping upgrade: werkzeug>=0.11.15 in /usr/local/lib/python3.7/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (0.14.1) 
-Requirement already satisfied, skipping upgrade: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.7/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (1.6.0.post3) 
-Requirement already satisfied, skipping upgrade: markdown>=2.6.8 in /usr/local/lib/python3.7/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (3.0.1) 
-Requirement already satisfied, skipping upgrade: google-auth<2,>=1.6.3 in /usr/local/lib/python3.7/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (1.16.1) 
-Requirement already satisfied, skipping upgrade: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.7/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (1.3.0) 
-Requirement already satisfied, skipping upgrade: cachetools<5.0,>=2.0.0 in /usr/local/lib/python3.7/dist-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (4.1.0) 
-Requirement already satisfied, skipping upgrade: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.7/dist-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (0.2.8) 
-Requirement already satisfied, skipping upgrade: rsa<4.1,>=3.1.4 in /usr/local/lib/python3.7/dist-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (4.0) 
-Requirement already satisfied, skipping upgrade: oauthlib>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (3.1.0) 
-Requirement already satisfied, skipping upgrade: pyasn1<0.5.0,>=0.4.6 in /usr/local/lib/python3.7/dist-packages (from pyasn1-modules>=0.2.1->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow>=2.1.0->textgenrnn) (0.4.8) 
-ERROR: tensorflow 2.2.0 has requirement h5py<2.11.0,>=2.10.0, but you'll have h5py 2.9.0 which is incompatible. 
 Installing collected packages: tensorflow-estimator, wrapt, tensorflow, textgenrnn Installing collected packages: tensorflow-estimator, wrapt, tensorflow, textgenrnn
   Attempting uninstall: tensorflow-estimator   Attempting uninstall: tensorflow-estimator
Ligne 54: Ligne 47:
       Successfully uninstalled tensorflow-1.13.1       Successfully uninstalled tensorflow-1.13.1
 Successfully installed tensorflow-2.2.0 tensorflow-estimator-2.2.0 textgenrnn-2.0.0 wrapt-1.12.1 Successfully installed tensorflow-2.2.0 tensorflow-estimator-2.2.0 textgenrnn-2.0.0 wrapt-1.12.1
 +</code>
  
 +=====Avec GPU sur Xubuntu 18.04=====
 +Et une carte graphique Nvidia 1060GTX. Pour l'installation de CUDA voir [[https://ressources.labomedia.org/yolo_darknet_sur_un_portable_optimus?s[]=cuda#installation_de_cuda_100_sur_xubuntu_1804|Installation de CUDA 10.0 sur Xubuntu 18.04]]. Mais il faut cuda 10.1 !!
 +
 +
 + 
 +<code>
 +sudo pip3 install --upgrade pip
 +Successfully installed pip-20.1.1
 +
 +sudo pip3 install --upgrade tensorflow
 +
 +Successfully installed astunparse-1.6.3 cachetools-4.1.0 gast-0.3.3 google-auth-1.16.1 google-auth-oauthlib-0.4.1 grpcio-1.29.0 h5py-2.10.0 keras-preprocessing-1.1.2 markdown-3.2.2 oauthlib-3.1.0 opt-einsum-3.2.1 protobuf-3.12.2 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-2.23.0 requests-oauthlib-1.3.0 rsa-4.0 scipy-1.4.1 setuptools-47.1.1 tensorboard-2.2.2 tensorboard-plugin-wit-1.6.0.post3 tensorflow-2.2.0 tensorflow-estimator-2.2.0 werkzeug-1.0.1 wrapt-1.12.1
 +
 +sudo pip3 install textgenrnn
 +
 +Successfully installed joblib-0.15.1 keras-2.3.1 keras-applications-1.0.8 scikit-learn-0.23.1 textgenrnn-2.0.0 threadpoolctl-2.1.0
 </code> </code>
 +
 +  sudo apt install libcudart9.1 libcublas-11-0 libcufft-11-0 libcurand-11-0 libcusolver-11-0 libcusparse-11-0
 +
archives/textgenrnn_install.1591604579.txt.gz · Dernière modification : 2020/06/08 08:22 de serge