Python 无法找到使用conda forge下载的ipopt.exe
我刚从它的网站下载了蟒蛇。H也使用安装了pyomo。然而,当我运行一个使用ipopt作为解算器的pyomo程序时,我得到了以下错误Python 无法找到使用conda forge下载的ipopt.exe,python,anaconda,conda,pyomo,ipopt,Python,Anaconda,Conda,Pyomo,Ipopt,我刚从它的网站下载了蟒蛇。H也使用安装了pyomo。然而,当我运行一个使用ipopt作为解算器的pyomo程序时,我得到了以下错误 WARNING: Could not locate the 'ipopt' executable, which is required for solver ipopt Traceback (most recent call last): File "C:\Users\UX490U\informe_1\modelo_avion_bue
WARNING: Could not locate the 'ipopt' executable, which is required for solver
ipopt
Traceback (most recent call last):
File "C:\Users\UX490U\informe_1\modelo_avion_bueno\07_10_2020_raw_pp_comparison\12h_horizon\2018_12h_jan_oct\noviembre\ECMWF\nov_EC.py", line 536, in <module>
results = opt.solve(modelA,keepfiles=keepfiles,tee=stream_solver)
File "C:\Users\UX490U\anaconda3\lib\site-packages\pyomo\opt\base\solvers.py", line 516, in solve
self.available(exception_flag=True)
File "C:\Users\UX490U\anaconda3\lib\site-packages\pyomo\opt\solver\shellcmd.py", line 118, in available
raise ApplicationError(msg % self.name)
ApplicationError: No executable found for solver 'ipopt'
但我不知道这是不是应该的样子
我需要帮助来了解正在发生的事情以及我能做什么。我与另一位解决者有类似的问题。这里找到的将.exe位置添加到sys路径的解决方案对我有效,谢谢你的回答,但我找不到.exe位置。下载时,我使用文件资源管理器进行了搜索,但没有ipopt.exe可能与此问题有关:
from pyomo.opt.base.solvers import *