You can’t. You can kill off you sweat glands one by one by chemical or electrical means but this would be very dangerous. You need to sweat to thermoregulate, i.e. keep your body temperature constant.
You can use antiperspirant on your underarms but you need to remember to wash it off at the end of the day and wash your armpits before putting some more on the next morning.
Sweating is vital but so long as you keep clean you should be fine.