error: package directory 'python27\lib\gurobipy' does not exist

901 views
Skip to first unread message

adam blumhagen

unread,
Mar 3, 2011, 11:47:50 AM3/3/11
to Gurobi Optimization
I am getting the following error when trying to run the setup script
for Gurobi optimizer in command line: error: package directory
'python27\lib\gurobipy' does not exist

I looked in the directory and there is a gurobipy folder. In it, there
are two files "_init_" and "gurobipy.pyd"


To install, I typed "C:\gurobi401\win32\setup.py install"

The following was said before the error:
running install
running build
running build_py


Thank you for your help.

Stuart Mitchell

unread,
Mar 3, 2011, 3:50:34 PM3/3/11
to gur...@googlegroups.com
I think this is solved by
cd C:\gurobi401\win32
then
setup.py install

as setup has difficulties when in is run from outside its directory (in this case are you in the python27 dir), this is a python thing that always annoys me

Stu

adam blumhagen

unread,
Mar 3, 2011, 4:16:59 PM3/3/11
to Gurobi Optimization
Thanks Stuart. You were correct.

Reply all
Reply to author
Forward
0 new messages