python-3.x - 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
我还需要添加其他路径吗?
解决方案
我有一个类似的问题。我最近更新了我的 CPLEX 版本并且遇到了同样的错误。一旦我更新了doopl,它就解决了问题: pip install doopl --upgrade
推荐阅读
- python - 使用简单路径找不到 Django 页面
- webrtc - 离开房间后,在 RTCMultiConnection 的 safari 浏览器中显示黑屏
- jboss - JBoss EAP:域模式下的保险库
- c# - 在运行时获取 --launch-profile 值 .net core
- wordpress - WP Bodymovin 插件
- angular - Angular 订阅 @Input 对象更改
- wordpress - Woocommerce Checkout 印度手机号码验证
- reactjs - 如何使用 react-redux 连接外部包中的组件
- android - 使用地图数据从服务器解析 JSON
- javascript - 如何在按钮单击中调用两个方法?