Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Gurobi in Virtualenv without Anaconda

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.

like image 714
Edouard Berthe Avatar asked Mar 28 '17 06:03

Edouard Berthe


People also ask

How do I download gurobi for Python?

1) Download the Gurobi software: http://www.gurobi.com/downloads/gurob i-optimizer 2) Log in or Sign up to download Gurobi. 3) Download the latest version corresponding to your operating system. 4) Locate the download folder and run the install Gurobi-7.5. 0-win64.

Where is gurobi installed?

By default, the installer will place the Gurobi 9.5. 2 files in directory c:\gurobi952\win64. The installer gives you the option to change the installation target.


1 Answers

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

like image 89
Greg Glockner Avatar answered Oct 19 '22 18:10

Greg Glockner