stahldonnerklinge
stahldonnerklinge

Reputation: 1

Install SCIP for Python on Windows does not work anymore

I had a working SCIP installation on Python using the following thread: SCIP Python Installation Issue Windows with pip

Now I have a new laptop and tried to re-install SCIP again but it does not work (I tried on several machines with the identical result). The software versions have changed so I refer to the new versions below.


Installation (Environment):


Error Message:

File "C:/Users/i070009/PycharmProjects/OptimizationModels/RunTestOfSCIPLibrary.py", line 1, in

from pyscipopt import Model, quicksum

ModuleNotFoundError: No module named 'pyscipopt'


If I use a jupyter Notebook (from pyscipopt import Model, quicksum) I get the following error message:

ImportError Traceback (most recent call last) in () ----> 1 from pyscipopt import Model, quicksum

C:\ProgramData\Anaconda3\lib\site-packages\pyscipopt__init__.py in () 1 # export user-relevant objects:

  2 from pyscipopt.Multidict import multidict

----> 3 from pyscipopt.scip import Model

  4 from pyscipopt.scip      import Branchrule

  5 from pyscipopt.scip      import Conshdlr

ImportError: DLL load failed: The specified module could not be found.

My guess is that the module is not found but since I added the PATH variables (and it worked on my old laptop) I’m puzzled why it does not work. It might be a really simple problem. I’m just not seeing it! Thanks for any help on this topic!

Upvotes: 0

Views: 2440

Answers (1)

mattmilten
mattmilten

Reputation: 6706

This is already handled here: https://github.com/SCIP-Interfaces/PySCIPOpt/issues/110

One needs to make sure that the bin directory is available in the PATH on Windows so both the binary as well as the dll/lib are found during installation and execution of PySCIPOpt.

Upvotes: 2

Related Questions