I am going to use the anaconda python.
Would you please tell me how I solve this problem when I use anaconda python?
Therefore, it would be very nice if you tell me the general solutions.
On Saturday, April 13, 2013 10:48:39 AM UTC-5, David wrote:
When trying to use Gurobi with Enthought's latest Canopy (formerly EPD), you'll probably get something like
In : import gurobipy
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
or some Library not found error.
Here's what you need to do to get this fixed on Mac OS 10.8 (with Xcode installed):
Step 3 needs to be repeated every time Gurobi is updated to a new version (until the issue is fixed of course).
- $ python setup.py install (skip this line if you already installed Gurobi in Canopy's site-packages)
- In your ~/.profile, append the following after Canopy's call to source the activation file:
- Fix the shared library (change USERNAME to your user name!)
$ install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Users/USERNAME/Library/Enthought/Canopy_64bit/User/Python /Users/USERNAME/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/gurobipy/gurobipy.so