Skip to main content

Problem installing Gurobi in Anaconda

Answered

Comments

4 comments

  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Maik,

    Could you please try installing the pip version? This usually works fine:

    pip install -i https://pypi.gurobi.com gurobipy

    As for the error, it seems that you have not installed Gurobi (not gurobipy) correctly. You may also try installing the full Gurobi package to make the DLL available on your system.

    Cheers
    Matthias

    0
  • Maik Fabian
    Gurobi-versary
    First Question
    First Comment

    Hi Matthias, 

    thx for your suggestion. Unfortunately referring to 

    https://pypi.gurobi.com

    doesnt work because I can´t access the web that way on my office laptop (timing out error). 

    I tried the following instead: I installed full Gurobi as described here and now have the setup.py file in c:\gurobi911\win64. I then did

    pip install -e C:\gurobi911\win64

    via Anaconda prompt and got a success Message. When I do it again, he also recognizes the former installation (I blacked out the username): 

    Still, gurobipy doesn´t show up in my list of packages in anaconda and consequently I can´t call it:

    Any further ideas on what is going wrong? 

    KRs Maik

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Maik,

    With the full Gurobi installation you should run

    python setup.py install

    from within the GUROBI_HOME directory. This is also explained in our Quick Start Guide and in this article:

    How do I install Gurobi for Python? – Gurobi Support Portal

    Please set up a new/clean environment and try again.

    Cheers,
    Matthias

    1
  • Maik Fabian
    Gurobi-versary
    First Question
    First Comment

    Hello Matthias, 

    thx for your support, I got it working that way now. 

    Kind Regards, 

    Maik

    0

Please sign in to leave a comment.