Gurobi installation detailed guide-latest version 2020

Official website address : Gurobi official website address

The first step is to register an account (note the use of campus email under the conditions of the campus network)

After registration, the system will send an Activation Email to your account

Step 2 download the file

After downloading, you can do the next step all the way, and finally ask for a restart, either manually or automatically. I have no problem with automatic restart.

The third step is to download the license file

Copy the command marked in red, then use Win+R and enter cmd.

Paste the command in the command line window, and then press Enter, the following result appears, just continue to press Enter, the license is stored in this directory by default.

The fourth step is to use Dapuben

Step 5 Configure Gurobi in the Python environment

Open your initial gurobi installation path

In the current interface shift+right click to open the Powershell window

Enter the following command and press Enter:

python setup.py install

The results appear as shown below:

The sixth step is to verify whether it can run successfully

Enter python, enter the python environment

Then enter the following command, you can call Gurobi in python normally without reporting an error

Guess you like

Origin blog.csdn.net/weixin_40539952/article/details/108764420