A career criminal with a history of armed robberies was handed a prison term of 20 years to life Wednesday for a 2010 armed carjacking outside a Pelham Manor drugstore, officials said.

David Piparo, 50, of 1150 Lawrence Ave. in the Bronx, was sentenced by State Supreme Court Justice Lester Adler for his guilty plea to one count of first-degree robbery, a violent felony, Westchester County District Attorney Janet DiFiore said in a statement.

Piparo had pleaded guilty to the crime Sept. 16, 2011, according to officials.

On the evening of Nov. 24, 2010, Piparo approached a woman who was sitting in her 2001 BMW near a CVS pharmacy on Boston Post Road and showed a gun before ordering her out of the car and driving away, officials said.

As Pelham Manor police investigated, they were contacted by the New York City Police Department about a string of robberies it was looking into in the Bronx. As a result of the investigation, NYPD officers found Piparo at a Bronx apartment and arrested him, officials said.

The BMW was found nearby.

advertisement | advertise on newsday

Piparo was sentenced as a persistent violent felony offender, officials said. His criminal record includes Bronx armed robbery convictions on April 19, 1985; June 11, 1985; and March 22, 1996.

On Oct. 2, Piparo was sentenced in federal court to 22 years in federal prison relating to three additional armed robberies: one at the Tes Oros jewelry store in Pelham Manor on Nov. 30, 2010, and two more in the Bronx, also in November 2010.

Piparo will serve the federal prison term before serving the state term he was sentenced to Wednesday, officials said.

@Newsday

Piparo served eight years in Fulton Correctional Facility in the Bronx after the 1985 convictions, according to a state database. He served 14 years in Mohawk Correctional Facility in Oneida County after the 1996 conviction and was paroled on Aug. 31, 2010, less than three months before the Pelham carjacking.

His attorney, Chris McClure of Hawthorne, declined to comment when reached Wednesday.