Install python version 3.7.4 for bowtie2-build

I am trying to run bowtie2-build to format a genome but I keep getting the following error:

/var/spool/slurm/d/job4396146/slurm_script: /spack/apps/linux-centos7-x86_64/intel-19.0.4/bowtie2-2.3.5.1-zcc7e3xmpzph3qgjgx5t5rqfznlvdbm7/bin/bowtie2-build: /spack/apps/linux-centos7-x86_64/intel-19.0.4/python-3.7.4-ozqsl2wcai2e5ifkqtc: bad interpreter: No such file or directory

I believe this is because bowtie2-build needs the python version 3.7.4 which has not been installed yet so I cannot load in this module.