Python in lammps

There is not enough information here to make any meaningful suggestion beyond “follow what is written in the documentation”.

Please see the similar current topic: How to build python3.10 in lammps