Minizinc Installed But Python Think Not
pip says minizinc is already installed, but when I try to call it in code, it gives me error saying it is not installed. (backend) bash-3.2$ python Python 3.8.3 (default, Jul 2 20
Solution 1:
As explained on MiniZinc Python's "Getting Started" page. MiniZinc Python is not the same as MiniZinc itself, it is merely a connection from Python to MiniZinc.
That means that before you can use MiniZinc Python, you also have to install the MiniZinc bundle. This is what the error is trying to tell you. The bundle can be found on the MiniZinc website.
Note that after the installation MiniZinc Python will look on your computer for the minizinc
executable whenever you import minizinc
in Python. If you haven't installed MiniZinc in the usual location, then you might need to append your PATH
environment variable with the directory in which the minizinc
to make it work.
Post a Comment for "Minizinc Installed But Python Think Not"