pip install Coopr
Python 2.7.5 |Anaconda 1.8.0 (64-bit)| ...
Type "help", "copyright", "credits" or "license" for more information.
>>> import coopr.pyomo
There is a branch of conda (new-pypi-install) that adds better integration with pip and PyPI. In particular conda list will also show pip installed packages and conda install will first try to find a conda package and failing that will use pip to install the package.
pyomo diet1.py diet.dat
the PATH on windows where is located pyomo.exe is indeed C:\Anaconda\Scripts
Besides, the PATH was set correctly since the cmd recognized the pyomo command at the beginning
on the cmd you can get a list of all the paths (where the C:\Anaconda\Scripts\ is inclueded"
So with Anconda it was only necessary to set the path where the glpsol.exe is located, to do that from the cmd.exe and considering that you have unzipped your winglpk on "C:\glpk\w64":
setx path "%path%;c:\glpk\w64"
After that, restart the cmd and navigate with the "cd" command where you have the data.py and data.dat
Finally it works! Thanks to the mailing list of pyomo project for the indications
For more information I recommend to read the next links:
setting the path on windows 7: http://www.voidspace.org.uk/python/articles/command_line.shtml http://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them