Examples in Gurobi installation directory
AnsweredHi Gurobi community,
I have been unable to see the Gurobi examples on my computer. When I type in jupyter:
import gurobipy as gp
print(gp.__file__)
I obtain
- C:\Users\calle\Anaconda3\lib\site-packages\gurobipy\__init__.py
When I go to the gurobipy folder I cannot see any of the Gurobi examples. I can only see:
- a folder __pycache__
- a couple of files
- __inti__.py
- gurobipy.pyd
Is gurobipy the installation directory or how can I know where gurobi is installed in my windows computer?
Any ideas on how can access the examples on my computer.
Thanks in advance
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Juan,
If you installed Gurobi via the \(\texttt{pip}\) installer, then only the Gurobi Python package \(\texttt{gurobipy}\) is installed. In order to have access to the examples, you will have to download and install the full Gurobi package. The default installation directory on Windows is \(\texttt{C:\gurobi911\win64}\). If this folder is not present, then you either installed Gurobi into a non-default location or did not install the full Gurobi software package. For more details, see point 3 of How do I install Gurobi for Python?
Best regards,
Jaromił-1 -
Thanks, Jaromil!
I had installed Gurobi from conda. I reinstalled gurobi as you mentioned and I have access to the examples directly from my pc.
0
Post is closed for comments.
Comments
3 comments