It also depends on the resources and culture of a region. The anarchist CNT-FAI was set up in Catalonian, a region known for its strong economy and left-wing culture (think of it as the San Francisco of Europe, but also with its on language and ethnic sub-group). So when the CNT-FAI finally rose up and into power, the groundwork for their anarcho-syndicalism (regional rule by democratically-elected workers’ unions) was already in place and the people were, for the most part, willing to accept it. The system that they had was actually pretty good to live under, but part of the reason that it worked so well in Catalonia was the scale and nature of the reason. A little over a decade earlier another, similar anarchist group rose up in Ukraine during the Russian Revolution. While anarchists love to glorify them (partly due to their flag, which looks like an anarchist’s version of a pirate flag), they committed many atrocities and weren’t actually all that great at forming a good government (or non-government, idk, anarchy is confusing).
In my mind, anarchy can work on a small scale in certain locations and with certain factors applicable. However, it’s not a universal end-all-be-all that works everywhere, something which anarchists refuse to admit. While anarchist city-states and enclaves might work reasonably well under the correct circumstances, scaled up it just becomes a logistical mess.