想要通过python调用gurobi求解整数规划模型。

如果你和我一样,提前下载了anaconda和gurobi。

在下载好anaconda和gurobi后,尝试运行后发现系统报错:找不到对应模块。ImportError: DLL load failed while importing gurobipy: 找不到指定的模块

参考

https://zhuanlan.zhihu.com/p/29165673 得以解决

其中,anaconda的安装位置查找:开始——Anacoda Prompt——输入命令:conda info --env 查看安装位置。

找到对应位置后,进入 \anaconda3\Lib,将对应版本的 gurobipy 文件夹复制过来即可。

Python+Gurobi

Python+Gurobi

Python+Gurobi

相关文章:

  • 2021-10-04
  • 2021-10-24
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2022-12-23
猜你喜欢
  • 2021-12-20
  • 2021-06-14
  • 2022-01-16
  • 2021-07-22
  • 2021-04-30
  • 2021-11-05
  • 2021-11-01
相关资源
相似解决方案