His father died when he was very young, and he was brought up by his mother, who married a second time, until, at the age of ten, he was placed in the academy of Turin.
Having obtained permission from the king to travel abroad, he departed in 1766, under the care of an English preceptor.