TRIPOLI
Libya's state-run television said Shagour got 96 votes out of a total of 191 at the 200-member Congress, defeating his rival Mahmoud Jibril by two votes.
Shagour, a professor of electronics engineering, was the deputy prime minister in the previous government.