Anthony Weiner has gone from hard time to a Bronx halfway house after being convicted for sexting an underage girl.

But even a registered sex offender’s got to eat — and The Post was there Sunday as Weiner popped outside his new Bronx digs to grab a delivery order.

Wearing his signature Mets baseball cap, the 54-year-old disgraced ex-congressman — who served 15 months of a 21-month federal prison sentence for sexting with the 15-year-old — briefly exited to greet a food deliveryman ferrying his $22.50 order.

He’ll serve out the next three months in the Bronx facility before being released outright in May with an accumulated three months off for good behavior.

On the menu for Weiner was hearty Italian fare from Brother’s Pizza a few blocks away. He ordered a $9.50 dish of homemade lasagna and $10 penne alla vodka with grilled chicken, along with two Snapples at $1.50 apiece to wash it all down.

“Hold on a second here. Hold on a second. They’re in here?” Weiner grilled the deliveryman around 2 p.m. after he was handed a large pizza box and brown paper bag with straws poking out at the door of the GEO Care Inc. facility in Fordham Heights.

“Everything’s in there,” the worker answered.

But Weiner could be in hot water for the Sunday feast: The food exchange took place right next to a sign that reads in all caps: “You May Not Bring Food or Beverages Into This Facility. Stop. No Exceptions!!”

After grabbing his food, Weiner couldn’t beat it fast enough.

“How you doing, buddy? Not allowed to talk, I’m sorry, my friend,” he told a Post reporter with a meek smile before ducking back inside.

The former politician left a paltry $2.50 tip on his online order, employees said.

The convicted pervert — dressed in a blue fleece zip-up and baggy navy sweatpants — spent the bulk of his sentence at the Federal Medical Center in Devens, Mass.

But Federal Bureau of Prisons records show he was transferred from the lockup to the halfway house, one of many facilities across the nation under the Residential Reentry Management program.

Before Weiner emerged from the halfway house, his visibly impatient deliveryman — ironically named Carlos, given Weiner’s sexting alter-ego was “Carlos Danger” — paced back and forth while calling the fallen politician repeatedly and asking passersby how to get in.

A restaurant receipt obtained by The Post showed no name on Weiner’s order — just an address, phone number and direction to “ring the silver buzzer.”

“He wasn’t answering his phone,” Carlos later groused about Weiner, saying he had no idea he was delivering to the infamous sex addict.

“He’s a f–king pervert,” Carlos said after being told.

The food worker said that after he completed the delivery, Weiner was so clueless that he rang him back.

“He was like, ‘You called?’ ” Carlos recalled.

Weiner is set to be released from federal custody May 14, thanks to good conduct behind bars that shaved about three months off his sentence.

His political career flamed out starting in 2011, when he resigned from Congress after being forced to admit sending lewd photos to women he’d met online.

Two years later, his comeback bid for mayor was torpedoed by revelations that he sexted with a woman under the pseudonym “Carlos Danger.”

His creepy behavior took a more disturbing turn in 2016 when he started up an online relationship with the teen — despite knowing full well that she was underage.

The fall from grace was capped in May 2017, when he pleaded guilty to exchanging X-rated texts with the North Carolina teen.

“I have a sickness, but I do not have an excuse,” Weiner sobbed in court at the time.

After the halfway house, Weiner will spend three years on supervised release, pay a $10,000 fine and register as a sex offender.

Hillary Clinton aide Huma Abedin, Weiner’s wife and the mother of their young son, filed for divorce just hours after he pleaded guilty. Abedin later withdrew the petition to settle matters out of court.

Neither the BOP nor Weiner’s or Abedin’s lawyers returned messages seeking comment.

An employee at the halfway house feigned ignorance when asked about Weiner’s stay — after he was spotted there.

“Who?” she said, before slamming the phone.