Brooklyn prosecutors will not pursue criminal charges against the police officer who shot and killed a knife-wielding bipolar man in 2017, a law enforcement source told The Post on Friday.

The source said the Brooklyn DA’s Office will not prosecute NYPD Officer Miguel Gonzalez for the shooting death of Dwayne Jeune, 32, who was killed after Gonzalez and three other cops responded to a report of a loud fight at Jeune’s East Flatbush apartment.

When the officers arrived at the fifth-floor apartment, Jeune’s mom explained he was in the back of the apartment, and Jeune then sprang out with a 10-inch bread knife. One of the officers fired a taser at Jeune, but the disturbed man still stormed him and stood over him with the knife.

At that point, Gonzalez fired five rounds into Jeune.

The law enforcement source said there was not sufficient evidence to bring charges against Gonzalez.

Sandy Rubenstein, who represents Jeune’s family, told The Post that, with the criminal investigation into the matter now concluded, the family’s pending $20 million federal civil lawsuit against the city can proceed.

“The family is disappointed” about the lack of criminal prosecution, Rubenstein said. “But now they believe the appropriate remedy is to discipline this police officer and remove him from the police force. They want him fired.”

At a news conference held Friday on the doorstep of the building where Jeune was killed, city Public Advocate Jumaane Williams — who represented Jeune’s neighborhood in the City Council before being elected to his current office — noted that Gonzalez had shot another emotionally disturbed person eight months before Jeune’s death.

“There are far too many descriptions of this story where people end up shot and end up killed,” Williams said. Jeune’s “mom and dad called for help for an emotional disturbed person. Dwayne’s condition should have been known to the department.”

Vibert Jeune, Dwayne Jeune’s father, said police had been called to their apartment “many times” in the past and that officers trained to deal with emotionally disturbed suspects were dispatched those times.

“This is sad,” he said. “And these things only happen to poor people like myself. They wouldn’t do that to somebody who has money and who can fight them.”