Skip to main content

gurobipy

Answered

Comments

3 comments

  • Maliheh Aramon
    Gurobi Staff 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

    0
  • Anastasios Varias
    First Question
    First Comment

    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"
    export GRB_LICENSE_FILE="/home/user/gurobi.lic"

    Same issue again.

    Thanks and regards.

     

    0
  • Gwyneth Butera
    Gurobi Staff 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"
    0

Please sign in to leave a comment.