Rwanda has a classification specifically for technology entrepreneurs. It's a 3-year visa and if you are a qualified software practitioner, I don't foresee you having difficulty getting a permit to start a software company here. They also pride themselves on same-day business registration.
https://www.migration.gov.rw/services/permits/temporary-perm...