fr:develop:collaboration:dev:environnement_python

This is an old revision of the document!


Création d'un environnement Python

Le projet Python HABBY est hébergé sur Github accessible au lien suivant : https://github.com/YannIrstea/habby.

  • Python >= 3
  • Git
  • Installer les dépendances.
  • Télécharger la wheele GDAL : https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
  • Ouvrez le fichier 'creation_env_habby.bat' et spécifiez :
    • le chemin d'accès à votre Python système en remplaçant le chemin de la variable : 'python_source_path=' ;
    • le chemin d'accès à votre la wheel GDAL que vous avez préalablement téléchargée en remplaçant le chemin de la variable : 'gdal_wheel_path=' ;
    • sauvegardez le fichier.
  • Lancer le fichier 'creation_env_habby.bat'.
  • Si toutes les étapes se sont bien déroulées, vous devriez voir apparaitre la fenêtre principale d'HABBY.
  • Votre environnement virtuel Python pour HABBY est prêt.
 pip3 install pip --upgrade
 pip3 install virtualenv
 cd ../habby_dev
 virtualenv --python /usr/bin/python3.6 env_virtuels/env_habby_dev_pip
 source env_virtuels/env_habby_dev_pip/bin/activate
 pip3 install gdal==2.2.3 --global-option=build_ext --global-option="-I/usr/include/gdal/"
 pip3 install -r habby/requirements.txt
 python habby/habby.py
  • fr/develop/collaboration/dev/environnement_python.1621503102.txt.gz
  • 2021/05/20 11:31
  • qroyer