gurobipy
AnsweredFile /usr/local/lib/python2.7/dist-packages/gurobipy/__init__.py includes the command
"from .gurobipy import *". Is the '.' before gurobipy normal?
Cause always im getting the error
File "/usr/local/lib/python2.7/dist-packages/gurobipy/__init__.py", line 1, in <module>
from .gurobipy import *
ImportError: libgurobi91.so: cannot open shared object file: No such file or directory
Thank you in advance.
-
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 -
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 -
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.
Comments
3 comments