
The exit code 137 generally means that your process was killed manually or by your OS. How to resolve the error "Process finished with exit code 137 (interrupted by signal: SIGKILL)"? In this case, please set the LD_LIBRARY_PATH environment variable in P圜harm to point to the lib subdirectory of your Gurobi installation directory (e.g., /opt/gurobi950/linu圆4/lib). You may encounter the following error when trying to import gurobipy: ImportError: libgurobi**.so: cannot open shared object file: No such file or directory Depending on your OS and user settings, you may need to preface this command with sudo.



Installing gurobipy into your project's virtual environment can be done either via pip or manually. The gurobipy package must be available to the Python interpreter of that venv. In a typical workflow, each P圜harm project will have an associated virtual Python environment ( venv).
