Gurobipy installed but not able to import in PyCharm


Hi Everyone,

I recently started using PyCharm for learning purposes. I have been struggling for a few days. I am trying to import 'gurobipy' however, getting an import error (Image attached). I tried reinstalling the gurobipy but didn't help.

Can anyone please help me here. 

Thanks a ton.


Comment actions Permalink


Could you run where python in the terminal and check if it shows the same python executable as the one you see in File | Settings | Project | Python Interpreter?
Have you tried using quick-fix for installing a missing package (use Alt+Enter shortcut)?

Comment actions Permalink

Thanks, Sergey Karpov. I had some great mess up related to the system variables and between anaconda distribution. I uninstalled all the multiple distributions/python versions and reinstalled them. It worked. Thanks a ton :).


Please sign in to leave a comment.