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/03/30 16:29] qroyerfr:develop:collaboration:dev:environnement_python [2024/05/31 20:57] (current) qroyer
Line 11: Line 11:
  
   * Installer les dépendances.   * Installer les dépendances.
-  * Télécharger la wheele GDAL : https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal +  * Télécharger la wheele GDAL : https://github.com/cgohlke/geospatial-wheels
     * 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 :   * 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 Python système en remplaçant le chemin de la variable : 'python_source_path=' ;
Line 26: Line 26:
 ==== Aide à la création de l'environnement Python pour Linux ==== ==== Aide à la création de l'environnement Python pour Linux ====
  
-   pip3 install pip --upgrade +  * installation de GDAL for Linux and GDAL for Python (https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html) 
-   pip3 install virtualenv + 
-   cd /local/AIX/quentin.royer/Documents/habby_dev/env_virtuels/ +  sudo apt-get install python3.6-dev 
-   virtualenv --python /usr/bin/python3.6 env_habby_dev_pip +  sudo add-apt-repository ppa:ubuntugis/ppa 
-   source /local/AIX/quentin.royer/Documents/habby_dev/env_virtuels/env_habby_dev_pip/bin/activate +  sudo apt-get update 
-   pip3 install gdal=2.2.--global-option=build_ext --global-option="-I/usr/include/gdal/" +  sudo apt-get install gdal-bin 
-   pip3 install -r /local/AIX/quentin.royer/Documents/habby_dev/habby/requirements.txt +  ogrinfo --version 
-   ## RUN HABBY +  sudo apt-get install libgdal-dev 
-   python /local/AIX/quentin.royer/Documents/habby_dev/habby/habby.py+ 
 +  * Lancer le fichier 'tips\virtual_envs\creation_env_habby_pip.sh'
 + 
 +  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==X.X.--global-option=build_ext --global-option="-I/usr/include/gdal/" 
 +  pip3 install -r habby/requirements.txt 
 +  python habby/habby.py 
 + 
 +{{indexmenu_n>1}}
  
  
  • fr/develop/collaboration/dev/environnement_python.1617114553.txt.gz
  • Last modified: 2021/03/30 16:29
  • by qroyer