Trouble Setting Up Gurobi with Python on Mac
ユーザーの入力を待っています。Hi everyone,
I am new to Gurobi and I need some help with setting it up on my Mac. I followed the installation guide, but I’m having trouble getting it to work with Python. Here’s what I did:
- Downloaded and installed Gurobi.
- Installed the gurobipy package using pip.
- Tried running a simple optimization script.
- When I run my script, I get an error saying that the Gurobi license could not be found. I’ve already set the environment variable for the license file, but the problem persists.
I also check this: https://support.gurobi.com/hc/en-us/community/posts/360076933931-Gurobi-python-package-on-Mac-csalesforce-devannot-find-gurobi-lic?input_string=Trouble%20Setting%20Up%20Gurobi%20with%20Python%20on%20Mac Has anyone else experienced this issue? Can you suggest any steps to fix this? Your guidance would be very helpful.
Thank you!
-
Hi Quin,
Not exactly sure what's causing this. One silly trick I've used several times for debugging, is to literally receive the GRB_LICENSE_FILE environment variable from within Python and then try and read/print the content of that file. In several cases we found out that either the environment variable was not set correctly (e.g. not set at system level but in one specific terminal window) or the path was incorrect and the file could not be found/read. Could you try this?
Kind regards,
Ronald0
サインインしてコメントを残してください。
コメント
1件のコメント