Investors & landlords

We purchased land with the intent to build our primary home, but building costs are currently too high. So now we are planning  to sell the land and buy a primary home with the proceeds. Is there anyway in this scenario that we are able to avoid paying capital gains tax?