【问题标题】:Cannot import pyscipopt into python (ubuntu)无法将 pyscipopt 导入 python (ubuntu)
【发布时间】:2016-03-15 03:34:52
【问题描述】:

我正在尝试使用 scip 的 python 接口。我已经下载了python接口并按照给出的说明安装了 SCIP 优化套件的 Python 接口。但是,当我尝试将 pyscipopt 导入 python 时,出现 ImportError:No module named 'pyscipopt.scip'。 我在 ubuntu 下使用 scipsuite-3.2.1。

【问题讨论】:

    标签: python scip


    【解决方案1】:

    请确保位于与您安装界面的目录不同的目录中。当当前目录中存在同名目录时,Python 在尝试导入某些内容时会感到困惑。请进入子目录scip/interfaces/python/tests 并尝试运行提供的测试文件。

    【讨论】:

      猜你喜欢
      • 2016-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-18
      • 2016-01-11
      • 1970-01-01
      • 2017-02-16
      • 1970-01-01
      相关资源
      最近更新 更多