Search code examples
pythonpyomo

How to install pyomo compute_canonical_repn in Ubuntu?


Pyomo version - 5.6.1
python - 2.7

I am totally new to Ubuntu, how can I install pyomo compute_canonical_repn?

I am getting an error while importing compute_canonical_repn

from pyomo.repn.compute_canonical_repn import preprocess_constraint

ERROR:- No module named compute_canonical_repn

I don't find any specific installation procedures to do

FYI, the same module is working in my windows machine with pyomo version 5.2


Solution

  • From your comment responses, this isn't an issue with the pip install pyomo command. You want to be able to use preprocess_constraint, which was moved to pyomo.repn.standard_repn.