我在系统环境设置中添加了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
我还需要添加其他路径吗?
答案 0 :(得分:1)
我有类似的问题。我最近更新了CPLEX版本,并遇到了相同的错误。更新doopl之后,它就解决了问题: pip install doopl --upgrade
答案 1 :(得分:0)
您能否按照Joshua的说明尝试升级doopl?如果您使用的是较旧版本的doopl,它将找不到COS 12.10库。