You can get a student visa either at a French consulate in your country or through Campus France (a French institution promoting higher education with a local office in almost all countries worldwide). Some countries require you to register first with Campus France to get a student visa.