A deodorant is not meant to prevent sweat. It’s only supposed to mask the bad smell that sweat might produce. As a result, you will still sweat. An antiperspirant also cannot prevent sweat entirely. It will only reduce the amount of sweating.