Step one: Download and install Anaconda
Download the most recent release of python. At the time of writing this post, it is python 3.7. The download file is around 462 MB so it may take some time for Anaconda to download. If your system type is x64 directly click the download button else click on 32-bit Graphic Installer. MacOS graphical install¶. Download the graphical macOS installer for your version of Python. RECOMMENDED: Verify data integrity with SHA-256.For more information on hashes, see What about cryptographic hash verification? Double-click the downloaded file and click continue to.
Gurobi supports Python 2.7 and 3.7 for Mac. Choose the version of Anaconda you wish to download:
Once the download has completed, double click on the downloaded .pkg file and follow the installation instructions. Once the install is complete, and once you close your current terminal and open a new one, typing python in your terminal window should invoke the Anaconda Python interpreter:
Type
quit()
in Python to return to the terminal.Install Anaconda On Mac
Step two: Install Gurobi into Anaconda
Mac Download Anaconda Version
The next step is to install the Gurobi package into Anaconda. You do this by first adding the Gurobi channel into your Anaconda platform and then installing the gurobi package from this channel. From an Anaconda terminal issue the following command to add the Gurobi channel to your default search list:
Anaconda Mac Download
Now issue the following command to install the Gurobi package:
You can remove the Gurobi package at any time by issuing the command:
Step three: Install a Gurobi License
Anaconda For Python 3.7 Windows
The third step is to install a Gurobi license (if you haven’t already done so). You are now ready to use Gurobi from within Anaconda. Your next step is to launch either the Spyder IDE or Jupyter Notebook.