He is in a new envirnoment with new smells to get use to. Is he in his tub you bought with him or have you got him in your own enclosure that you set up for him? Is it a baby?
All babies are snappy. They are not savage, just frightened. They are born wild animals so have lots to learn when they enter the world. My suggestion would be to leave him for a week or more to get use to his safe surrounds. Then try handling him. They will all snap when you pick them up but once you have him in your hands learn what it is that is provoking the snapping and avoid those actions - could be sudden movement, suddenly touch him startles him, shadows, big hands coming at him. He doesn't know you aren't going to hurt him. But the older he gets the more he will get use to it and most of them settle and grow out of the snapping in time. If you have to, invest in a little hook to use to get him out of his enclosure. Many snakes are scared of the hands but stress less when the hook comes at them, makes easier removal, then bring your hands in to take him. Hooks are not for wooses. They are designed to picking up snakes causing less stress than your big scarey hand coming in at them.
Handling should be kept short n sweet. When he starts getting use to you more you can lengthen the time you handle him, but most snakes will tolerate handling often but for short periods rather than having to hang off your shoulders all day long.