Thanks for your answers.
Unfortunately, it did not work, even by inverting the two lines. I still received the same AttributeError with natsort.
I decided to uninstall Miniconda completely and it appears to work. Well, I’m not sure though because the qiime2 command is still running. But at least it doesn’t give me the previous error. I think I don’t have enough RAM to do so (from previous discussions), so I’ll work in the cloud of my uni.
Thanks a lot to both of you for your time.