Skip to main content

error in pycharm

Answered

Comments

5 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Sonja Mars
    Gurobi Staff Gurobi Staff

    Hi,

    We have a knowledge base article about this topic. Have you already looked at it?

    Best regards,

      Sonja

    -1
  • Grzegorz Siekaniec
    Gurobi-versary
    Curious
    First Comment

    It seems that PyCharm is not picking up settings from your terminal set through ".bashrc" as explained in Gurobi documentation. So although you might be able to solve it from terminal, even terminal inside PyCharm, it will not work if you want to run it using configuration. What worked for me was to set "LD_LIBRARY_PATH=/opt/gurobi811/linux64/lib" in Environment Variables part of Configuration. I needed to pass a full path as substitution does not seem to work either.

    I am using Anaconda with Python 3.7 and in this specific instance I created virtual environment using "python3 -m --system-site-packages venv_gurobi"

    0
  • Aaron Dunmore
    Gurobi-versary
    First Comment

    Just writing to confirm what Grzegorz said - setting "LD_LIBRARY_PATH=/opt/gurobi903/linux64/lib" solved this problem for me.

    I had otherwise followed the instructions in the knowledge base article Sonja linked to. Perhaps that article should be updated to include this step for linux users?

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Thank you for the feedback, Aaron! We just updated the knowledge base article.

    Cheers,
    Matthias

    0

Post is closed for comments.