The world number two, who had been seeded second in the competition, sustained the injury at the UNICEF Open in the Netherlands on Tuesday.
She had previously sprained her right ankle in April while dancing barefoot at her cousin’s wedding.
“At this moment I feel frustrated that it has to happen now before one of my favourite tournaments,” she said. “I’ve always enjoyed being a part of the Wimbledon atmosphere but I have no other choice but to rest, recover and to not play tennis for a few weeks.”
The 28-year-old hopes to recover in time for the US Open in August, when she will be aiming to secure her fourth win at the tournament.
World number one Caroline Wozniacki has been revealed as top seed for Wimbledon, which commences on Monday.