Problem installing Gurobi in Anaconda
AnsweredDear gurobi team/community,
I´m trying to use gruobi within my anaconda/python environment, but I so far I failed.
I tried to follow the instructions for the conda package. This unfortunately doesn´t work, I guess a proxy within my company prohibits the connection. I then downloaded the file corresponding to my version here and tried to manually install it via conda install. Now gurobi shows as packages in my anaconda environment. Still, I cannot load the package:
I guess the problem lies rather within anaconda/python. Unfortuanetly I am new to these and cant firgure out what it is. Do you have any idea by chance?
Kind regards,
Maik
-
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
Matthias0 -
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 -
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,
Matthias1 -
Hello Matthias,
thx for your support, I got it working that way now.
Kind Regards,
Maik
0
Please sign in to leave a comment.
Comments
4 comments