I tried to install py2exe using conda install -c kieranharding py2exe and pyinstaller but it hangs in solving environment.
I changed conda config --add channels conda-forge and conda config --set channel_priority strict and flexible.
But just keeps hanging. I managed to install in another environment but I want py2exe to install to root env.