首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >installation lemon找不到ILOG COIN SOPLEX

installation lemon找不到ILOG COIN SOPLEX
EN

Stack Overflow用户
提问于 2021-01-22 18:12:27
回答 1查看 71关注 0票数 0

我正在尝试安装github repository,并按如下方式运行

代码语言:javascript
复制
/home/user/.local/bin/python3 -m pip install -e /home/user/repository_folder_name

我得到以下错误

代码语言:javascript
复制
    ERROR: Command errored out with exit status 1:
 command: /home/user/.local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/user/PyMatching/setup.py'"'"'; __file__='"'"'/home/user/PyMatching/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
     cwd: /home/user/PyMatching/
Complete output (54 lines):
running develop
running egg_info
writing src/PyMatching.egg-info/PKG-INFO
writing dependency_links to src/PyMatching.egg-info/dependency_links.txt
writing requirements to src/PyMatching.egg-info/requires.txt
writing top-level names to src/PyMatching.egg-info/top_level.txt
reading manifest file 'src/PyMatching.egg-info/SOURCES.txt'
writing manifest file 'src/PyMatching.egg-info/SOURCES.txt'
running build_ext
-- pybind11 v2.4.dev4
CMake Warning (dev) at lib/lemon/CMakeLists.txt:6 (PROJECT):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    LEMON_VERSION
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find ILOG (missing: ILOG_CPLEX_LIBRARY ILOG_CPLEX_INCLUDE_DIR)
-- Could NOT find COIN (missing: COIN_CBC_LIBRARY COIN_CBC_SOLVER_LIBRARY COIN_CGL_LIBRARY COIN_CLP_LIBRARY COIN_OSI_LIBRARY COIN_OSI_CBC_LIBRARY COIN_OSI_CLP_LIBRARY)
-- Could NOT find SOPLEX (missing: SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/PyMatching
Error: could not load cache

here也有类似的问题。但是我已经尝试注释掉#CMAKE_POLICY(设置旧的CMP0048 ),并确保我使用的是最新版本的cmake。

我不知道如何找到这些开发库或找到替代方案。请建议如何解决此问题。而且,这只是我试图运行它的unix服务器上的一个问题。在我本地的Windows计算机上,安装很顺利。

EN

回答 1

Stack Overflow用户

发布于 2021-03-29 21:02:43

我是PyMatching的开发者,现在我已经将其添加到Python包索引中(请参阅here),因此您可以使用pip从PyPI安装最新版本:

代码语言:javascript
复制
pip install pymatching

由于pip将获取为各种平台构建的轮子,这将有望解决您的问题,因为您不需要自己构建它。

如果出于某种原因,您仍然需要构建自己的PyMatching源代码的本地副本,那么克隆最新版本的repo也可能解决您的问题,因为在您发布帖子之后,我已经切换到更新版本的PyMatching C++库。

如果这样还不能解决问题,你也可以在GitHub上创建一个问题,和/或让我知道你使用的是哪个版本的操作系统。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65843157

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档