Why can't I use my Gurobi on python even when I have done the instructions?
AnsweredImportError Traceback (most recent call last)
<ipython-input-4-91dfbe4a8d78> in <module>
----> 1 from gurobipy import *
2 # define a list of the loan types to use for variable indices
3 loan_type=['Personal', 'Car', 'Home', 'Farm', 'Commercial']
4
5 # use dictionaries to define parameters
~/opt/anaconda3/lib/python3.8/site-packages/gurobipy/__init__.py in <module>
----> 1 from .gurobipy import *
ImportError: dlopen(/Users/nadeemdamanhuri/opt/anaconda3/lib/python3.8/site-packages/gurobipy/gurobipy.so, 2): Library not loaded: /Library/gurobi903/mac64/lib/libgurobi90.dylib
Referenced from: /Users/nadeemdamanhuri/opt/anaconda3/lib/python3.8/site-packages/gurobipy/gurobipy.so
Reason: image not found
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Gurobi ls looking for \( \texttt{libgurobi90.dylib} \) in the default location of \( \texttt{/Library/gurobi903/mac64/lib} \). Have you already downloaded Gurobi 9.0.3 from the Gurobi website, and can you verify it installed to the system \( \texttt{/Library} \) directory?
0
Post is closed for comments.
Comments
2 comments