【问题标题】:Cmake is not able for find python-six libraryCmake 无法找到 python-6 库
【发布时间】:2023-08-29 04:48:01
【问题描述】:

我正在尝试安装 Fbthrift,但出现此错误:

-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   context
--   filesystem
--   program_options
--   regex
--   system
--   thread
--   chrono
--   date_time
--   atomic
-- Found folly: /usr/local
-- Found YARPL: /usr/local
-- Found rsocket: /usr/local
-- Found fizz: /usr/local
-- Found wangle: /usr/local
-- Found Zstd: /usr/lib/x86_64-linux-gnu/libz.so  
-- ZLIB: /usr/include
-- Found Zstd: /usr/local/lib/libzstd.so  
-- ZSTD: /usr/local/include
CMake Warning at CMakeLists.txt:144 (find_package):

在 CMAKE_MODULE_PATH 中不提供“Findpython-six.cmake” 项目 已要求 CMake 查找由 “python-6”,但 CMake 没有找到。

  Could not find a package configuration file provided by "python-six" with
  any of the following names:

    python-sixConfig.cmake
    python-six-config.cmake

  Add the installation prefix of "python-six" to CMAKE_PREFIX_PATH or set
  "python-six_DIR" to a directory containing one of the above files.  If
  "python-six" provides a separate development package or SDK, be sure it has
  been installed.
-- Python dependencies not found, will not build thrift/lib/py
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sarath/lib/fbthrift/_build

我已经安装了官方FbThrift页面中提到的所有依赖项 我还安装了 cuda 8.0 和 cuDNN 5.0 以及 Torch 7 及其依赖项。 如果我忽略此错误并继续 THPP 安装,它会显示 THRIFT_LIBRARY 缺失 并中止安装。如何解决这个问题?

【问题讨论】:

    标签: makefile cmake ubuntu-16.04 thrift


    【解决方案1】:

    已通过在 Ubuntu 14.02 LTS 中安装所有依赖项解决了此问题。

    【讨论】:

    • 嗨。我遇到了同样的问题。您能否更具体地说明您为安装 python-6 而执行的步骤列表?
    • 我已将操作系统从 Ubuntu 16.04 更改为 Ubuntu 14.02。问题已解决