If you have resided in California for the statutroy period granting jurisdiction, usually 6 months, you may seek a divorce in that state. The problem is if your spouse was never in the state, it may have no personal jurisdiction over your spouse.
You can file for divorce in California, as long as you have been a residence of California for at least the past 6 months. You would file in the county in which you have resided for at least the past 3 months.
In my answer, I am assuming that you reside in California and that your spouse never resided in California. For example, if you currently live in California but your spouse never lived here, the California court would be able to grant you a divorce, but could not make orders against the other party regarding financial matters.
The response given is not intended to create, nor does it create an ongoing duty to respond to questions. The response does not form an attorney-client relationship, nor is it intended to be anything other than the educated opinion of the author. It should not be relied upon as legal advice. The response given is based upon the limited facts provided by the person asking the question. To the extent additional or different facts exist, the response might possibly change.
The same way anyone else does. The place of the marriage isn't relevant or an issue - only whether you meet the residency requirement in the state in which you now live.