首页 > 解决方案 > doopl bin目录路径

问题描述

我在系统环境设置中添加了 opl 的 bin 目录路径。

以下是路径。

C:\Program Files\IBM\ILOG\CPLEX_Studio1210\opl\bin\x64_win64

但是,doopl 不断给我错误,如下所示

File "C:\Python37\lib\site-packages\doopl\opl.py", line 18, in <module>
    raise ImportError('Could not import OPL wrappers. Make sure than OPL bin directory is in the PATH')
ImportError: Could not import OPL wrappers. Make sure than OPL bin directory is in the PATH

我还需要添加其他路径吗?

标签: python-3.xdocplexdoopl

解决方案


我有一个类似的问题。我最近更新了我的 CPLEX 版本并且遇到了同样的错误。一旦我更新了doopl,它就解决了问题: pip install doopl --upgrade


推荐阅读