How to install Gurobipy modula in Python

11,624 views
Skip to first unread message

marvelous

unread,
Nov 28, 2011, 3:26:48 AM11/28/11
to Gurobi Optimization
Hi,
Sorry to bother you guys. I am a new learner on Gurobi, and I am
trying to install gurobipy modula on Python. I know that they have
instructions on how to connect these two. But I am also really dum on
computers. I tried different ways to set this up, but never worked.

Here's the instruction on official website of Gurobi:
"If you are a Python user, and wish to use Gurobi from within your own
Python environment, you can install the gurobipy module directly into
your environment. You do this by issuing this command from your
<installdir>:
python setup.py install"

The way I do this is to find the path of Gurobi installation file in
windows Command Prompt(C:\gurobi460\win64) by typing cd C:
\gurobi460\win64. and I typed: python setup.py install. Then I got
the message" python is not recognized as an internal or external
command". I am really confued.

Can somebody tell me the exact command I need to type in in Command
Prompt? Or if you have a pictured procedure of how to do this, could
you please send it to me?


Thank you so much!

Stuart Mitchell

unread,
Nov 28, 2011, 3:31:20 PM11/28/11
to gur...@googlegroups.com
1. First install python http://python.org/download/
2. If python has not put itself on the system path (it usually does but seems not to in you case) find out where python is installed, usually C:\python27
4. go to C:\gurobi460\win64
3. run 
c:\python27\python setup.py install
--
Stuart Mitchell
PhD Engineering Science
Freelance Programmer and Optimisation Expert

Greg Glockner

unread,
Nov 28, 2011, 3:41:40 PM11/28/11
to gur...@googlegroups.com
These instructions are correct if you want to put gurobipy into another Python installation. Note that we distribute a version of Python with Gurobi, so beginning users can simply use the version of Python that is installed with Gurobi.

Reply all
Reply to author
Forward
0 new messages