I am not sure about France. When I search online, I often find resources stating “Yes, ID is required”, even for the countries where I know that I have bought SIM cards with cash. Well, the SIM is usually free and what I pay for is the top-up code.
I would imagine (but I’m not sure) that if you try to buy a SIM card at an airport or at an official store from a large telephony provider you are more likely to get asked for an ID. I find them in shops that have signs with the names of smaller MVNOs. Something like what is shown in this image that I found online, where you can see signs of ‘Lyca Mobile’ and ‘Lebara’:
But, your mileage may vary. Probably some locations are more strict than others.
That’s a very interesting resource!
Actually, the countries where I have been able to purchase anonymous SIM cards are in the list “As of 2021, the following countries do not have mandatory SIM card registration laws”. So, it appears like I just happen to have been lucky and I should not make this as such a general recommendation…
Funny, about Mexico it says:
I can at least confirm that I was not asked for ID when buying SIM cards last year in Mexico.
I just looked it up and found the proposed law for Mexico on Wikipedia. It was struck down in 2022 as unconstitutional.
So, then, I really have no anecdotes to say that it is easy in places where it is formally illegal.