我正在尝试使用 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 外部是一个棘手的问题,我建议你删除外部并让 spack 安装它自己的 python。