A politically dicey investigation into Wall Street banks allegedly rigging US Treasury auctions has stalled due to a lack of evidence, and it’s unclear if the federal government will bring any charges against the companies, The Post has learned.

The antitrust probe, which threatened to be an embarrassment for officials in both the Obama and Trump administrations, was focused on whether Goldman Sachs traders colluded with others to fix prices in the $13 trillion Treasurys market, sources have told The Post.

Investigators are hitting dry wells in their evidence hunt through thousands of pages of Bloomberg chats, plus dozens of interviews, to bring a clear case, one law enforcement official familiar with the probe told The Post.

“There just wasn’t enough there,” the person said.

The probe, which exposed potential weaknesses in the way the US Treasury prices the interest on the country’s debt obligations, has been an embarrassing one for Washington since it was first exposed by The Post in June 2015.

Jacob Lew, then head of the Treasury under President Barack Obama, wanted a quick resolution to the probe soon after it was revealed, The Post reported in 2017

Since then, Lew was replaced by Goldman alumnus Steve Mnuchin, who is now Treasury secretary under President Trump. Another ex-Goldman partner who joined the White House, Gary Cohn, had overseen the division that submitted the bids to Treasury at the time.

No one has accused Lew, Mnuchin or Cohn of any wrongdoing in the matter.

While charges are unlikely to be filed, it’s not clear that banks won’t suffer some negative consequences.

A class-action lawsuit filed in 2015 showed that, after The Post first broke the story, banks changed their behavior in how they bid for Treasury bonds.

The suit, which was brought on behalf of pension funds and investors, also relied on a confidential informant who helped describe how the banks allegedly rigged the Treasury markets.

As recently as 2017, Department of Justice investigators were focused on a period from 2007 to 2011 when Goldman was particularly successful in bidding for Treasury bonds, sources told The Post in 2017.

Since then, however, a string of departures at the department also slowed the investigation, a third source told The Post.

The talks between Goldman and the feds have been “inactive,” another person familiar with the talks told The Post.

The investigation was one of many that looked into banks for potential conspiracies to rig markets in the wake of blockbuster interest-rate and currency-rigging probes that led to billions of dollars in fines and the resignation of top execs, including Barclays chief executive Robert Diamond.

Other banks, including Deutsche Bank, Royal Bank of Scotland, BNP Paribas, Morgan Stanley, and UBS, had trading and chat records subpoenaed by the Department of Justice.

In addition, the Securities and Exchange Commission and the New York Department of Financial Services were investigating the alleged rigging.

Spokespeople for the Department of Justice and the SEC didn’t return requests for comment, and a DFS spokesman declined to comment.