Gurobi: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 152: Line 152:
<!--T:105-->
<!--T:105-->
{{Commands|prompt=[name@server ~] $
{{Commands|prompt=[name@server ~] $
| module load StdEnv/2016  (not needed for gurobi>9.0.2)
| module load gurobi/9.0.1 python/3.7
| module load gurobi/9.0.1 python/3.7
| virtualenv --no-download  ~/env_gurobi
| virtualenv --no-download  ~/env_gurobi
Line 160: Line 161:
| source ~/env_gurobi/bin/activate
| source ~/env_gurobi/bin/activate
}}
}}
<!--T:107-->
Now that the environment has been activated install the Python packages we want to use, in this case <code>pandas</code> for example:
Now that the environment has been activated install the Python packages we want to use, in this case <code>pandas</code> for example:


<!--T:110-->
{{Commands|prompt=(env_gurobi) [name@server ~] $
{{Commands|prompt=(env_gurobi) [name@server ~] $
|  pip install --no-index  pandas
|  pip install --no-index  pandas
Line 176: Line 176:
   Successfully installed numpy-1.18.4 pandas-1.0.3 python-dateutil-2.8.1 pytz-2020.1 six-1.15.0
   Successfully installed numpy-1.18.4 pandas-1.0.3 python-dateutil-2.8.1 pytz-2020.1 six-1.15.0
}}
}}
<!--T:110-->
The third and final step is to install gurobipy into the environment:
The third and final step is to install gurobipy into the environment:


cc_staff
1,857

edits

Navigation menu