Israel would have been a happier place if godly men were available, but they were not. These injunctions can be understood to mean that Christians should only vote for Christians. However, there is a practical difficulty. In this country, most candidates claim to be born-again Christians. Both the incumbent President and the two major-party nominees claim to be Christians, and are known to attend church.
More serious digging is required.
We must look for the fruit of a Christian life. The incumbent President leads a scandalous life-style. One major-party candidate has publicly affirmed a host of blatantly heretical beliefs. On this basis, we could reasonably say that a Christian must not vote for such men. Indeed, it would be irresponsible of their church elders to admit these men to the Lord's Supper.