Skip to main content

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

Awaiting user input

Comments

6 comments

  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    Hi,

    Some more details would be helpful.
    When are you seeing this error? Could you share the whole error message?

    Cheers, 
    David

    0
  • Di Lv
    Gurobi-versary
    First Question
    First Comment

    Thanks! I met this error when I invoked the gurobi package in my python program. It happened as I wrote "import gurobipy as gp".

     

    0
  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    How did you install the python package?
    When using pip/conda this should taken care of.  How do I install Gurobi for Python? 

    Additionally, your environment variable should be (in case it is already set):

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

    See Linux section of How do I install Gurobi Optimizer? 

    Cheers, 
    David

    0
  • Di Lv
    Gurobi-versary
    First Question
    First Comment

    In the Linux terminal, I use "cd" to get into the  gurobi1003/linux64, where i can find a python program named "setup.py", then I use "python setup.py install" to install gurobi. Finally ,I entered "gurobi.sh", it reminded me that I have successfully installed the gurobi of version 10.0.3

    0
  • Di Lv
    Gurobi-versary
    First Question
    First Comment

    I have already set the four enviroment variables(GUROBI_HOME,PATH,LD_LIBRARY_PATH,GRB_LICENSE_FILE) using "vim ~/.bashrc"  

    0
  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    Maybe you installed Gurobi as sudo?

    I would suggest you delete the current gurobipy installation (check where it is with `python3 -m pip uninstall gurobipy` and then remove the files and directories manually.

    Then re-install it using pip.

    Cheers, 
    David

    0

Please sign in to leave a comment.