我最近安装了适用于python 3.6.5(win 32位)的Amplpy,但我面临以下问题:
RuntimeError Traceback (most recent call last)
<ipython-input-4-1768ae85d3ec> in <module>()
1 from amplpy import AMPL
----> 2 ampl = AMPL()
D:\Poulad\Program\myprog\lib\site-packages\amplpy\ampl.py in __init__(self, environment, langext)
83 if environment is None:
84 try:
---> 85 self._impl = amplpython.AMPL()
86 except RuntimeError as e:
87 from sys import stderr
RuntimeError: AMPL could not be started: The system cannot find the file specified.
我还通过sys.path.append()将amplpy和amplpython路径添加到搜索路径中,但错误再次弹出
你能帮我解决这个问题吗
调用ampl时,必须输入ampl可执行文件的路径(第2行)。因此,不是:
你写道:
相关问题 更多 >
编程相关推荐