首页 > 解决方案 > Pyomo (PySP) 正在将“\”更改为“/”

问题描述

当我在 Anaconda Prompt(Windows 操作系统)中使用runef命令时(PySP)

(base) D:\Downloads\Documents\models_Opt_estocastica> runef --solve --solver=gurobi

我收到错误:

"runef: IO ERROR:
path does not exist: D:/Downloads/Documents/models_Opt_estocastica/ReferenceModel.py

问题是Pyomo将“\”符号更改为“/”符号,因此它无法识别我给出的路径。你知道我该如何解决这个问题吗?

非常感谢您的帮助。

标签: pythonpyomo

解决方案


推荐阅读