Forums

Installing Gurobi Python interface

Hello,

I am trying to install the Gurobi Python interface. This command seems to work in a bash shell, after I uploaded setup.py from my computer:

python setup.py install --user

running install

running build

running build_py

running install_lib

running install_egg_info

Removing /home/ksattar/.local/lib/python2.7/site-packages/gurobipy-6.0.4.egg-info

Writing /home/ksattar/.local/lib/python2.7/site-packages/gurobipy-6.0.4.egg-info

Then within iPython, I try doing "import gurobipy":

ImportError Traceback (most recent call last)

'<ipython-input-2-1a30be95fe9a>' in <module>()

----> 1 import gurobipy

/home/ksattar/.local/lib/python2.7/site-packages/gurobipy/init.py in <module>()

----> 1 from .gurobipy import *

ImportError: No module named gurobipy

Does anyone know what might be going wrong?

Thank you,

-Kaivan

From what I can see on the Gurobi site, you need to install it for the correct platform. Did you try to install the Windows version on PythonAnywhere?

Guys,

This is the only topic on trying to install Gurobi to run it in PythonAnywhere. Is there any topic in the Help or FAQ to instruct me on doing this? I couldn't find.

Thanks, Fábio

No, we don't have any official tutorial for that one.

Thank you, I'll try to install it manually then. I couldn't find any Help article on how to install libraries manually, is there any? The package consists of 3 thousand files and weights 180 MB...

You need to follow the instructions provided by Gurobi combined with our documentation on installing