Installing Gurobi in Virtualenv without Anaconda

Edouard Berthe picture Edouard Berthe · Mar 28, 2017 · Viewed 7.8k times · Source

I would like to use Gurobi Optimization library with Python3.5 inside a virtualenv environment, without having to install the whole Anaconda Framework. This implies to be able to install Gurobi library (gurobipy) via Pipy.

On Gurobi website is only explained how to install it with Anaconda and conda package manager, using the commands:

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

I do not understand how (and why!) a Python library would require Python to be installed as a Framework to work well (matplotlib often bothers, but does not requires it). Isn't there any way to convert this command conda config --add channels *** into a similar command for Pypi, so I could eventually rm -rf my 98%-useless 2Gb Anaconda stack?

Thanks for your answers.

Answer

Greg Glockner picture Greg Glockner · Mar 28, 2017

Here are instructions to install gurobipy in your own Python distribution by running python setup.py install.