Np.reddit.com/r/dataisbeautiful/comments/4psn1x/6000_years_of_urbanization_in_3_minutes/
It's mainly about climate and population density. Although it is possible there were ancient cities in Africa whose ruins have simply been lost.
Cities first developed due to the advent of farming. Farming was first developed in Mesopotamia, and from there it spread. However, farming techniques must be adapted to the climate and crops available. Africa had a much different climate and different crops, which required a lot of expertise to cultivate due to Africa's harsh climate. This meant that the 'agricultural revolution' was slower to take hold in Africa, thus less cities. The earliest cities were all in the Mediterranean climate, whereas sub-Saharan Africa was more forests or savanna, so agriculture had to be adapted, which took a while.
Even then agriculture was limited. Things like coffee and bananas were farmed in Ethiopia, and in western Africa they grew yams and rice.
Source: "Africa in World History" by Erik Gilbert and Jonathan T. Reynolds.