Most of the ones I have tried were Windows only and/or or intended to be set up as part of a server. On that front, you may like to read about
Bitnami's application stacks which make it fairly easy to set up a large variety of options, including most mainstream wikis. It's still a steep learning curve if you're not familiar, but much easier that assembling your own from scratch.
There are some non-system specific personal wiki solutions like
TiddlyWiki and a derivative
Wiki On A Stick (WOAS), but neither of these have received much attention for a few years. Back when I tried these they seemed a bit too fragile for my tastes.
And ALL the local install wikis I tried were all very basic in their features - nothing even suggesting they might consider export to epub.
When it comes to features I think your best bets probably lie with some online options ... but I leave that to others to comment on, as I have not tried them. (I use my own database software for notes, it implements a multi-format text editor capable of dealing with markdown, html, text and some others. It's Windows only - in case you were wondering.)