A driver who rammed his car into a pizzeria near Paris yesterday, killing a girl and injuring 13 people, had consumed large quantities of medication and had severe mental health problems, officials said this afternoon.

The incident initially raised fears of a new terror attack, coming just five days after a suspected extremist rammed a vehicle into a group of soldiers in Paris.

But investigators have ruled out a terror motive, with the focus now on the driver's health problems and the reasons for the crash.

He had allegedly tried to kill himself on Sunday, sources have told AFP.

"He's someone with serious psychological problems," local prosecutor Dominique Laurens told reporters.

A separate legal source told AFP that the driver had admitted to taking "large amounts of medication... We still don't understand his motive from what he's told us so far." 

The crash in the village of Sept-Sorts, 55km east of Paris, killed a girl aged around 12 years and left five people seriously injured, including her three-year-old brother.

Pictures showed a BMW with its front-end inside the restaurant after ploughing through diners enjoying an evening meal in balmy summer weather.

Flowers, children's toys and messages of condolences built up near the spot this afternoon. Today is a public holiday in France in the middle of the traditional summer vacation period.

"It's an absolute tragedy," said the deputy mayor of the village, Alain Lecomte. "Everyone is shocked."

Eight other people suffered light injuries, Interior Minister Gerard Collomb said.

French President Emmanuel Macron sent his condolences last night, tweeting that his thoughts were with the victims and their loved ones.

France is on edge after suffering a series of terror-related attacks, with some involving the use of vehicles as weapons.

On 9 August, six soldiers were injured after they were hit by a rented BMW in the western Paris suburb of Levallois-Perret.

The suspect, a 36-year-old Algerian man, was later shot and wounded after a dramatic motorway chase.

On 14 July last year, an extremist driving a truck crushed 86 people to death after a fireworks display in the southern city of Nice.