I need help with a transformers error

Im trying to use the stable-diffusion webui with the dreambooth extension on my windows pc, but I keep getting this error

ImportError: diffusers requires transformers >= 4.25.1 to function correctly, but 4.21.0 was found in your environment. You can upgrade it with pip: 'pip install transformers --upgrade'

but when I use the pip install transformers --upgrade command, it says I already have version 4.25.1