简体   繁体   中英

How to install gurobi library on Azure Databricks cluster?

Gurobi provides a easy way to install through Anaconda on pc. As an alternative, one can use gurobi installer and run setup.py to install. I am not sure how to install this on a Databricks cluster given there is no PyPi installer for gurobi and no jar file I can upload.

This is the interface on databricks to install library在此处输入图片说明

If you use an ML runtime for your cluster, conda comes pre-installed, so you can install gurobi using a normal conda CLI command.

Edit: As of Gurobi 9.1, you can now install it via PyPi / pip. More info here: https://support.gurobi.com/hc/en-us/articles/360044290292-How-do-I-install-Gurobi-for-Python-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM