gurobipy is not directly available using pip. The following steps document on how to install gurobipy without using a package manager.
Extract the tar file, preferably in the /opt
folder
tar -xvf gurobi801.tar.gx
Export the following environmental variables. Put them in ~/.bashrc
so that the environmental variables are sourced always.
export GUROBI_HOME="/home/ubuntu/gurobi801/linux64" export PATH="${PATH}:${GUROBI_HOME}/bin" export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
Navigate into the folder. Run the setup file
python3 setup.py install
from gurobipy import *
to verify