如何运行cplex studio安装好的 python 代码例子, cpoptimizer.exe 系统找不到指定文件
•
Windows 10
打开
CMD , ****
注意,一定要用管理员身份打开命令行窗口, 因为在安装的时候,
cplex
环境变量路径在系统管理员环境变量中, 不在用户变量中。
•
我的安装目录
C
:\mydoc\CPLEX129\sample\python\examples\cp\basic>
•运行:
Python color.py
•
•
以用户身份打开
Windows
命
令行窗口, 出现这样的错误
•
raise
CpoException
("Can not execute command '{}'. Please check availability of required executable
file.".format
(' '.join(
cmd
)))
docplex.cp.utils.CpoException: Can not execute command 'cpoptimizer.exe -angel'. Please check availability of required executable file