Moltemplate: ModuleNotFoundError: No module named 'moltemplate'

Dear all,
I was using Moltemplate to convert a pdb file to a data file for lammps simulation.
I have prepared lt files for all my molecules and file.
when I ran “ -pdb model.pdb”, an error occurred: v2.20.19 2022-2-06
Traceback (most recent call last):
File “/usr/local/bin/”, line 5, in
from moltemplate.lttree_check import main
ModuleNotFoundError: No module named ‘moltemplate’

I have written two lines in .bashrc file:
export PATH=“$PATH:/home/mewu/Downloads/moltemplate_2023-2-06/moltemplate”
export PATH=“$PATH:/home/mewu/Downloads/moltemplate_2023-2-06/moltemplate/scripts”

And run “which” commands, it shows “/usr/local/bin/”

Any help would be much appreciated.

You need to remove the file (or link) from /usr/local/bin and only use the copy on your home.

Thanks. This solution worked. I can convert the file successfully.