我想在 manylinux docker 容器(quay.io/pypa/manylinux1_i686)中构建我的代码。在 manylinux 中,我想使用 Python 3.7。这就是为什么在我的CMakeLists.txt
我得到以下行:
find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy)
我收到错误消息:
CMake Error at /usr/local/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Python (missing: Python_INCLUDE_DIR Development NumPy)
(found version "2.4.3")
Call Stack (most recent call first):
/usr/local/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.13/Modules/FindPython.cmake:194 (find_package_handle_standard_args)
CMakeLists.txt:32 (FIND_PACKAGE)
如何告诉find_package
函数、我的 Python 存储在哪里以及我想使用哪个 Python?我可以在/opt/python/cp37-cp37m/bin/python3.7
.