The student visa must be requested at the consular office in Portugal embassy or in a Portuguese consulate. The student that hasn’t the visa is in irregular situation and could even being prevented from entering in Portugal.
For more information, please read the Foreigners and Frontiers Services: