Gurobi/fr: Difference between revisions

121 bytes added ,  3 months ago
Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 166: Line 166:
=== Installer Gurobi pour Python ===
=== Installer Gurobi pour Python ===


As mentioned near the bottom of this official document [http://support.gurobi.com/hc/en-us/articles/360044290292-How-do-I-install-Gurobi-for-Python How-do-I-install-Gurobi-for-Python] the previously recommended method for installing Gurobi for Python with <code>setup.py</code> has been deprecated to be only usable with Gurobi 10 versions (and older).  Therefore a new section has been added below which shows how to simultaneously download a compatible binary wheel from [[pypi.org/project/gurobipy|pypi.org]] and convert it into a format usable with a newly recommended command to install Gurobi for Python with Gurobi 11 versions (and newer).
As mentioned near the end of this official document [http://support.gurobi.com/hc/en-us/articles/360044290292-How-do-I-install-Gurobi-for-Python How-do-I-install-Gurobi-for-Python], the previously recommended method for installing Gurobi for Python with <code>setup.py</code> has been deprecated to only be usable with Gurobi 10 versions (and older).  Therefore, a new section has been added below which shows how to simultaneously download a compatible binary wheel from [[pypi.org/project/gurobipy|pypi.org]] and convert it into a format usable with the newly recommended command to install Gurobi for Python with Gurobi 11 versions (and newer).


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 172: Line 172:
</div>
</div>


<div class="mw-translate-fuzzy">
Il faut suivre les étapes suivantes une fois sur chaque système avec StdEnv2023 et moins récents. Chargez d'abord les modules pour [[Python/fr#Créer_et_utiliser_un_environnement_virtuel|créer l'environnement virtuel]], puis activez cet environnement.
Il faut suivre les étapes suivantes une fois sur chaque système avec StdEnv2023 et moins récents. Chargez d'abord les modules pour [[Python/fr#Créer_et_utiliser_un_environnement_virtuel|créer l'environnement virtuel]], puis activez cet environnement.
</div>


<div class="mw-translate-fuzzy">
{{Commands|prompt=[name@server ~] $
{{Commands|prompt=[name@server ~] $
| module load gurobi/10.0.3 python
| module load gurobi/10.0.3 python
Line 180: Line 183:
}}
}}
Installez les paquets que nous voulons utiliser, ici <code>pandas</code>. Par exemple
Installez les paquets que nous voulons utiliser, ici <code>pandas</code>. Par exemple
</div>


<div class="mw-translate-fuzzy">
{{Commands|prompt=(env_gurobi) [name@server ~] $
{{Commands|prompt=(env_gurobi) [name@server ~] $
|  pip install --no-index  pandas
|  pip install --no-index  pandas
Line 187: Line 192:


Instead the required files need to copied to elsewhere (such as /tmp/$USER) and installed from there, for example:
Instead the required files need to copied to elsewhere (such as /tmp/$USER) and installed from there, for example:
</div>


{{Commands|prompt=(env_gurobi) [name@server ~] $
{{Commands|prompt=(env_gurobi) [name@server ~] $
38,789

edits