File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 54
54
if "GUROBI_HOME" in environ :
55
55
if platform .lower ().startswith ("win" ):
56
56
libfile = glob (
57
- os .path .join (os .environ ["GUROBI_HOME" ], "bin\\ gurobi[0-9][0-9].dll" )
57
+ os .path .join (os .environ ["GUROBI_HOME" ], "bin\\ gurobi[0-9][0-9][0-9] .dll" )
58
58
)
59
59
else :
60
60
libfile = glob (
61
- os .path .join (os .environ ["GUROBI_HOME" ], "lib/libgurobi[0-9][0-9].*" )
61
+ os .path .join (os .environ ["GUROBI_HOME" ], "lib/libgurobi[0-9][0-9][0-9] .*" )
62
62
)
63
63
if not libfile :
64
64
libfile = glob (
65
65
os .path .join (
66
66
os .environ ["GUROBI_HOME" ],
67
- "lib/libgurobi.so.[0-9].[0-9].*" ,
67
+ "lib/libgurobi.so.[0-9].[0-9].[0-9]. *" ,
68
68
)
69
69
)
70
70
78
78
minor_ver = vs [1 ]
79
79
80
80
if lib_path is None :
81
- for major_ver in reversed (range (6 , 10 )):
81
+ for major_ver in reversed (range (6 , 11 )):
82
82
for minor_ver in reversed (range (0 , 11 )):
83
83
lib_path = find_library ("gurobi{}{}" .format (major_ver , minor_ver ))
84
84
if lib_path is not None :
85
85
break
86
86
if lib_path is not None :
87
87
break
88
88
89
- # Check for gurobi 9.5 through pip installation
89
+ # Check for gurobi through pip installation
90
90
if lib_path is None :
91
91
gurobipy_spec = importlib .util .find_spec ("gurobipy" )
92
92
if gurobipy_spec :
You can’t perform that action at this time.
0 commit comments