使用spack安装:cmake找不到python3

问题描述 投票:0回答:1

我正在尝试使用 spack 在 HPC 计算机上安装软件包。在构建依赖项之一(this)时,遇到以下错误。

CMake Error at /netfs/$USER/spack/opt/spack/linux-rhel7-skylake_avx512/gcc-11.2.0/cmake-3.27.9-6ut2kk3mda2gacsaaikhkonwioq35ecg /share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
     91      Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (Required
     92      is at least version "3.9")
     93    
     94          Reason given by package:
     95              Interpreter: Wrong version for the interpreter "/bin/python"

预先加载了相关的python模块(python3.10)。该包也添加到packages.yaml中。

packages:
  python:
    externals:
    - spec: [email protected]+bz2+crypt+ctypes+dbm+lzma+nis+pyexpat+pythoncmd+readline+sqlite3+ssl+tix+tkinter+uuid+zlib
      prefix: /lustre/machine/local/apps/python3/3.10

我该如何解决这个问题?

python-3.x cmake spack
1个回答
0
投票

Python 外部是一个棘手的问题,我建议你删除外部并让 spack 安装它自己的 python。

© www.soinside.com 2019 - 2024. All rights reserved.