Python Spyder For Mac


Installing the Anaconda Python distribution

The Gurobi distribution includes a Python interpreter and a basic setof Python modules. While these are sufficient for building andrunning simple optimization models, they provide just a glimpse of thewealth of tools and modules that are available for Python. Thissection guides you through the steps involved in installing Anaconda,a widely-used Python platform that includes an Integrated DevelopmentEnvironment (Spyder), a notebook-style interface (Jupyter), and abroad set of Python modules. These tools can significantly increasethe interactivity and productivity of your Python model buildingexperience.

How to download and configure the Spyder IDE for numpy, matplotlib, and scientific use. PyCharm is a professional IDE Suite which is offered in two different versions.

Before we begin, we should note that Anaconda isn't your only choicein Python IDEs. Popular alternatives includeEric,iep,PyCharm, andPyDev. We won't be covering thedetails of installing these other options for use with Gurobi, but theAnaconda instructions that follow should provide a good outline forthe steps involved. We've found that Anaconda provides a nice balancebetween power and complexity, but we realize that people may look fordifferent things in their Python environments.

You will also find instructions for installing Anaconda Python at theGet Anacondapage on ourwebsite.

Step 1: Download and Install Anaconda

Python Spyder For Mac Catalina

The first step is to download and install Anaconda. You can finddetailed instructionshere.Be sure to check the box Add Anaconda to my PATH environment variablewhen prompted during the installation process.Otherwise, Step 2 may not work.

Anaconda spyder python

Gurobi supports the 64-bit versions of Python 2.7, 3.6, and 3.7.Click on the download button for the version you want. Once thedownload has been completed,double click on the downloaded.pkg file and follow the installation instructions.

Install

Once the install is complete, and once you close your current terminaland open a new one, typing python in your terminal windowshould invoke the Anaconda Python interpreter:

>python
Python 3.7.4 Anaconda, Inc. ...
...

Python

Type quit() in Python to return to the terminal.

Step 2: Install Gurobi into Anaconda

The next step is to install the Gurobi package into Anaconda. You dothis by first adding the Gurobi channel to your Anaconda channelsand then installing the gurobi package from this channel.

From a terminal window issue the following command to add theGurobi channel to your default search list

conda config --add channels http://conda.anaconda.org/gurobi

Now issue the following command to install the Gurobi package

conda install gurobi

You can remove the Gurobi package at any time by issuing thecommand

Spyder

conda remove gurobi

Step 3: Install a Gurobi LicenseThe third step is toinstall a Gurobi license (if you haven't already done so).

You are now ready to use Gurobi from within Anaconda. Yournext step is to launch either theSpyder IDEorJupyter.

Python Spyder Machine Learning


Python Spyder For Mac Osx

Subsections