在slurm集群服务器上,安装了一个Python软件包 mcsolver,在slurm提交脚本中执行Python脚本,不执行且报错
python脚本:
#!/home/wangxin_32146054_cx_155/miniconda3/bin/python
import mcsolver
mcsolver.loadMC("./CrI3With2NNCoupling")
slurm提交脚本:
#!/bin/bash
#SBATCH -J test
#SBATCH -p para
#SBATCH -N 1
#SBATCH --cpus-per-task=16
echo Time is date
echo Directory is $PWD
echo This job runs on the following nodes:
echo $SLURM_JOB_NODELIST
echo This job has allocated $SLURM_JOB_CPUS_PER_NODE cpu cores.
#export I_MPI_ADJUST_REDUCE=3
ulimit -s unlimited
source /opt/intel/oneapi/setvars.sh
python mc.py
Traceback (most recent call last):
File "mc.py", line 2, in
import mcsolver
ModuleNotFoundError: No module named 'mcsolver'
求解答,完结有偿!
这不是有报错信息么,补一下mcsolver这个包就好了