Pip install gurobipy - giving error

2,433 views
Skip to first unread message

madhav jagannathan

unread,
Mar 12, 2019, 5:27:19 AM3/12/19
to Gurobi Optimization
Hi,

I tried to pip install gurobipy and its showing the following error

Could not find a version that satisfies the requirement gurobipy (from versions: )
No matching distribution found for gurobipy

Please help with this

Silke Horn

unread,
Mar 12, 2019, 5:33:53 AM3/12/19
to gur...@googlegroups.com
Hi,

As of version 8.1.0 you cannot install Gurobi with pip.

Please use the setup script or install with conda.

You can find more information here:
Windows: https://www.gurobi.com/documentation/8.1/quickstart_windows/the_gurobi_python_interfac.html
Linux: https://www.gurobi.com/documentation/8.1/quickstart_linux/the_gurobi_python_interfac.html
Mac: https://www.gurobi.com/documentation/8.1/quickstart_mac/the_gurobi_python_interfac.html

- Silke
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

madhav jagannathan

unread,
Mar 14, 2019, 7:19:41 AM3/14/19
to Gurobi Optimization
Hi thanks for the answer and it worked for python 2.7

But pysetup is not working for python 3.6 , how do i install for python 3.6?

Silke Horn

unread,
Mar 14, 2019, 7:21:25 AM3/14/19
to 'Tobias Achterberg' via Gurobi Optimization
Hi,

What is the error that you are getting for Python 3.6?

- Silke

Shashank Srivastava

unread,
Mar 18, 2019, 9:12:46 AM3/18/19
to Gurobi Optimization
Try this

gurobipy is not directly available using pip. The following steps document on how to install gurobipy without using a package manager.


  • Download gurobi optimizer tar file from http://www.gurobi.com/downloads/gurobi-optimizer
  • Extract the tar file, preferably in the /opt folder

    tar -xvf gurobi801.tar.gx
  • Export the following environmental variables. Put them in ~/.bashrc so that the environmental variables are sourced always.

    export GUROBI_HOME="/home/ubuntu/gurobi801/linux64"
    export PATH="${PATH}:${GUROBI_HOME}/bin"
    export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib" 
  • Navigate into the folder. Run the setup file

    python3 setup.py install
  • Gurobi package is now installed. Open python shell type from gurobipy import * to verify
Reply all
Reply to author
Forward
0 new messages