no completion for gurobi

Hi,

I am using Pycharm professional 2019.2 and the main problem is in using gurobipy which imported correctly and tested. 

writing syntax using any packages works fine and code completion works either but in gurobi after importing even all attributes using:

from gurobipy import *

OR

from gurobipy import  Model, GRB

no completion is supported such as when I wanna define a model:

m = Model()

next if I want to add variables or constraints after m 

I expect receiving the pop up including addVar , addConstr

BUT NOTHING shows up 

 

any help please

0

Hi, I could not reproduce the issue:

Please try File | Invalidate caches / restart

How did you install gurobipy? Did you use setup.py, or installed in Anaconda? 

I installed with Anaconda and it seems to be working for me:

https://www.gurobi.com/documentation/9.0/quickstart_mac/ins_the_anaconda_python_di.html

Could you try it as well?

0
Avatar
Permanently deleted user

Thanks for your reply.

I installed gurobi through anaconda::  conda install gurobi

after creating the model as shown in the shot then after m. what pop up suggests you?

regards

 

0

Please see screenshot:

If it's not working in your case, please try updating PyCharm to the latest: https://www.jetbrains.com/pycharm/download

0
Avatar
Permanently deleted user

Thanks again,

I am installing the latest Pycharm to assure any kind of faults and error as you advised.

 

0
Avatar
Permanently deleted user

  YES

problem Solved

Indeed appreciated for your help

0

请先登录再写评论。