Pyomo optimization

I would like to use pyomo to do linear optimization. I installed the pyomo package using pip3 without problem. I can import the environment without error, but when I try to run pyomo commands I get a NameError. I also need to load a solver such as CBC to do optimization. Is this possible using pythonanywhere?

NameError means that you're trying to access a variable that you have not defined. Make sure that you are defining variables before you use them.

We do not have cbc installed. I have raised a ticket to include it the next time we create a system image (probably in a few months).