Installing gurobi with anaconda error

732 views
Skip to first unread message

Max Tabord-Meehan

unread,
Apr 1, 2016, 2:59:54 PM4/1/16
to Gurobi Optimization
Hi all,

Sorry if this has been asked in the past, I can't seem to find an references to it.

I am trying to install gurobi using anaconda using these instructions: http://www.gurobi.com/documentation/6.5/quickstart_linux/installing_the_anaconda_py.html

and there doesn't seem to be any issues after installing. In fact, I can use gurobi through pulp by calling the solver (for example) in the following way:

prob.solve(pulp.GUROBI_CMD(msg=0))


However, when I try to work with gurobi directly in python I receive the following error when importing the library:


Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ImportError: dlopen(/Users/Max/anaconda/lib/python2.7/site-packages/gurobipy.so, 2): Library not loaded: /Library/gurobi651/mac64/lib/libgurobi65.so

  Referenced from: /Users/Max/anaconda/lib/python2.7/site-packages/gurobipy.so

  Reason: image not found


I have tried uninstalling and reinstalling through anaconda to no avail.



Any help would be much appreciated!


Max

Max Tabord-Meehan

unread,
Apr 1, 2016, 4:02:19 PM4/1/16
to Gurobi Optimization
Never mind! It seems that installing via anaconda was not sufficient. You must also install gurobi from here:


It's possible this was obvious to most users.

Regards,

Max
Reply all
Reply to author
Forward
0 new messages