fr:develop:collaboration:dev:environnement_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fr:develop:collaboration:dev:environnement_python [2021/09/28 16:17] qroyerfr:develop:collaboration:dev:environnement_python [2026/06/03 16:44] (current) – [Aide à la création de l'environnement Python pour Windows] ylecoarer
Line 10: Line 10:
 ==== Aide à la création de l'environnement Python pour Windows ==== ==== Aide à la création de l'environnement Python pour Windows ====
  
-  * Installer les dépendances. +  * Télécharger la wheele GDAL : https://github.com/cgohlke/geospatial-wheels
-  * Télécharger la wheele GDAL : https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal +
     * https://www.gisinternals.com/release.php     * https://www.gisinternals.com/release.php
-  * Installer Microsoft Visual C++ 14.0 : https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ +  * Installer Microsoft Visual C++ 14.0 : https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ si besoin 
-  * Ouvrez le fichier 'creation_env_habby.bat' et spécifiez : +  * Editez le fichier C:\habby_dev\habby\tips\virtual_envs\creation_env_habby_pip_py311.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=' ;     * 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.     * sauvegardez le fichier.
-  * Lancer le fichier 'creation_env_habby.bat'.+  * Lancer le fichier ' C:\habby_dev\habby\tips\virtual_envs\creation_env_habby_pip_py311.bat'.
   * Si toutes les étapes se sont bien déroulées, vous devriez voir apparaitre la fenêtre principale d'HABBY.   * 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.   * Votre environnement virtuel Python pour HABBY est prêt.
Line 25: Line 23:
  
 ==== Aide à la création de l'environnement Python pour Linux ==== ==== Aide à la création de l'environnement Python pour Linux ====
 +
 +  * installation de GDAL for Linux and GDAL for Python (https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html)
 +
 +  sudo apt-get install python3.6-dev
 +  sudo add-apt-repository ppa:ubuntugis/ppa
 +  sudo apt-get update
 +  sudo apt-get install gdal-bin
 +  ogrinfo --version
 +  sudo apt-get install libgdal-dev
 +
 +  * Lancer le fichier 'tips\virtual_envs\creation_env_habby_pip.sh'.
  
   pip3 install pip --upgrade   pip3 install pip --upgrade
Line 31: Line 40:
   virtualenv --python /usr/bin/python3.6 env_virtuels/env_habby_dev_pip   virtualenv --python /usr/bin/python3.6 env_virtuels/env_habby_dev_pip
   source env_virtuels/env_habby_dev_pip/bin/activate   source env_virtuels/env_habby_dev_pip/bin/activate
-  pip3 install gdal==2.2.--global-option=build_ext --global-option="-I/usr/include/gdal/"+  pip3 install gdal==X.X.--global-option=build_ext --global-option="-I/usr/include/gdal/"
   pip3 install -r habby/requirements.txt   pip3 install -r habby/requirements.txt
   python habby/habby.py   python habby/habby.py
  • fr/develop/collaboration/dev/environnement_python.1632838679.txt.gz
  • Last modified: 2021/09/28 16:17
  • by qroyer