• Gurobi Staff

Hi Anastasios,

Are you using a Linux machine? Have you checked our How do I use Gurobi with PyCharm (Section: Note for Linux users) article or the Software Installation Guide (for Linux)? You likely need to extend the environment variable $$\texttt{LD_LIBRARY_PATH}$$ to include the $$\texttt{lib}$$ subdirectory of your Gurobi installation directory. For example, you might need to add the following to to your $$\texttt{.bashrc}$$ file if you are using $$\texttt{bash}$$:

export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"

Best regards,

Maliheh

Thank you for the response.

Yes its a Linux system. In the .bashrc file I have included the following,

export GUROBI_HOME="/home/user/gurobi811/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="\${GUROBI_HOME}/lib"

Same issue again.

Thanks and regards.

• Gurobi Staff

Thanks for the further information.

It looks like you have a version mismatch here:

The error is :

ImportError: libgurobi91.so: cannot open shared object file: No such file or directory

But your path is to Gurobi 8.1.1 not 9.1.x:

export GUROBI_HOME="/home/user/gurobi811/linux64"