Gurobi library cannot be loaded using the latest github-version code #46
Replies: 1 comment 1 reply
-
The latest git version requires Gurobi 12 because it implements nonlinear programming interfaces. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
Currently, I want to use the _reset() function of Gurobi.model. Therefore, I installed the latest version through
pip install git+https:https://github.com/metab0t/PyOptInterface.git
. The installation was successful. But when I ran the model, it appeared thatFile "D:\app\miniconda3\envs\prep-shot\lib\site-packages\pyoptinterface\_src\gurobi.py", line 542, in __init__ init_default_env() File "D:\app\miniconda3\envs\prep-shot\lib\site-packages\pyoptinterface\_src\gurobi.py", line 116, in init_default_env DEFAULT_ENV = RawEnv() RuntimeError: Gurobi library is not loaded
.When I test the autoload_library() function in _src.gurobi, I found although
libs=['C:\\gurobi1103\\win64\\bin\\gurobi110.dll', 'D:\\app\\miniconda3\\envs\\prep-shot\\lib\\site-packages\\gurobipy\\gurobi110.dll', 'gurobi120.dll', 'gurobi110.dll']
, ret=false.In comparison, when I directly used
pip install pyoptinterface
for the repository-version, this error did not show.I have tried both on my windows and linux with the same results. Do you know how to solve it?
My gurobi version is 11.0.3, and python vesion is 3.9.23.
Beta Was this translation helpful? Give feedback.
All reactions