grbgetkey可执行文件位于完整的Gurobi安装中。当你尝试在命令提示符/终端中使用grbgetkey检索许可文件时,如果你收到错误“command not found”或“'grbgetkey'不被识别为内部或外部命令,可操作程序或批处理文件”,请:
- 确保系统上已经安装了Gurobi。如果没有,请参阅我们的快速入门指南.
注意:Gurobi pip安装方法不提供诸如grbgetkey之类的Gurobi许可工具。为了使用grbgetkey,您将需要使用中描述的其他安装方法之一如何为Python安装Gurobi ? - 尝试指定grbgetkey的完整路径。如果Gurobi安装在默认位置,可以这样做:
- 窗口:C: \ gurobi950 \ win64 \ bin \ grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Linux:/ opt / gurobi950 / linux64 / bin / grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- MacOS:/图书馆/ gurobi950 / macos_universal2 / bin / grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
进一步的信息
- 下载Gurobi优化器
- 快速入门指南>检索和设置Gurobi许可证(窗户,Linux,MacOS)
- 我如何解决错误“通信失败”从grbgetkey?
- 我如何解决一个“错误405”从grbgetkey?
- 我如何解决一个“错误303”从grbgetkey?