Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
启动Temoa时运行Pyomo时出现问题_Pyomo - Fatal编程技术网

启动Temoa时运行Pyomo时出现问题

启动Temoa时运行Pyomo时出现问题,pyomo,Pyomo,我在运行Temoa时遇到了一些问题,所有错误都与Pyomo版本有关。我验证了它与环境要求相同,但仍然存在一些错误,我报告了以下我所做的一些试验和相关错误: -第一个命令:pyomo solve--help (temoa-py3)C:\Users\amedeo.testori\Desktop\temoa-energysystem\u new>pyomo solve--help 回溯(最近一次呼叫最后一次): 文件“c:\users\amedeo.testori\anaconda3\envs\tem

我在运行Temoa时遇到了一些问题,所有错误都与Pyomo版本有关。我验证了它与环境要求相同,但仍然存在一些错误,我报告了以下我所做的一些试验和相关错误:

-第一个命令:pyomo solve--help

(temoa-py3)C:\Users\amedeo.testori\Desktop\temoa-energysystem\u new>pyomo solve--help 回溯(最近一次呼叫最后一次): 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\scripting\pyomo\u main.py”,第25行,在 plugin_class=entrypoint.load() 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pkg\u resources\u init\uuuu.py”,第2450行,已加载 返回self.resolve() 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pkg\u resources\u init\uuuz.py”,第2456行,解析 模块=导入(self.module_名称,fromlist=['名称',级别=0) 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\pysp\u init\uuuz.py”,第25行,在 导入pyomo.pysp.scenariotree 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo\pysp\scenariotree\u init\uuu.py”,第18行,在 导入pyomo.pysp.scenariotree.manager 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\pysp\scenariotree\manager.py”,第969行 async=False, ^ SyntaxError:无效语法

在处理上述异常期间,发生了另一个异常:

回溯(最近一次呼叫最后一次): 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\runpy.py”,第193行,运行模块作为主 “main”,模块规格) 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\runpy.py”,第85行,运行代码 exec(代码、运行\全局) 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\Scripts\pyomo.exe\u main.py”,第4行,在 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\scripting\pyomo\u main.py”,第37行,在 提高效率(msg) 导入错误:加载pyomo.command入口点pyomo.runbenders=pyomo.pysp.benders时出错: 原始语法错误:无效语法(manager.py,第969行) 回溯: 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\scripting\pyomo\u main.py”,第25行,在 plugin_class=entrypoint.load() 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pkg\u resources\u init.py”,第2450行,已加载 返回self.resolve() 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pkg\u resources\u init\uuuz.py”,第2456行,解析 模块=导入(self.module_名称,fromlist=['名称',级别=0) 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\pysp\u init\uuuz.py”,第25行,在 导入pyomo.pysp.scenariotree 文件“c:\users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo\pysp\scenariotree\u init\uuu.py”,第18行,在 导入pyomo.pysp.scenariotree.manager

-第二个CMMAND:python temoa_model/--config=temoa_model/config_sample

(temoa-py3)C:\Users\amedeo.testori\Desktop\temoa-energysystem\u new>python temoa\u model/--config=temoa\u model/config\u示例 回溯(最近一次呼叫最后一次): 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\runpy.py”,第193行,运行模块作为主 “main”,模块规格) 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\runpy.py”,第85行,运行代码 exec(代码、运行\全局) 文件“temoa_model_main.py”,第28行,在 从temoa_模型导入* 文件“temoa\u model\temoa\u model.py”,第22行,在 从temoa_运行导入* 文件“temoa\u model\temoa\u run.py”,第29行,在 从pyomo.environ导入* 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\environ_init.py”,第89行,在 导入软件包() 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\environ\u init.py”,第59行,在导入包中 do_导入(pname) 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\environ_init.py”,第16行,在do_import中 importlib.import\u模块(包装名称) 导入模块中的文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\importlib\u init.py”,第127行 返回bootstrap.gcd_导入(名称[级别:],包,级别) 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\pysp_init.py”,第25行,在 导入pyomo.pysp.scenariotree 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\pysp\scenariotree\u init.py”,第18行,在 导入pyomo.pysp.scenariotree.manager 文件“C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site packages\pyomo\pysp\scenariotree\manager.py”,第969行 async=False, ^ SyntaxError:无效语法