I use os x 10.11, anaconda 1.3.1, python 3.5, glpk 4.60, pyomo 5.0.1, spyder 3.0.2. If i run a scrip which uses pyomo to call glpk i get the following warning and error:
WARNING:pyomo.solvers:Could not locate the 'glpsol' executable, which is required for solver 'glpk'
ApplicationError: No executable found for solver 'glpk'
If i start the same script via the terminal or a jupyter notebook it runs without a problem.
I installed glpk using:
conda install -c conda-forge glpk=4.60
How do i get glpk working within the spyder environement?
If i run
which glpsol
i get
/Users/myusername/anaconda/bin/glpsol
but adding the directory into the PYTHONPATH manager within Spyder does not change anything.
Any help is highly appreciated. Thanks