we don't need something that long distance at all
EU has enough areas with sparse population and not that much nature which also are south enough to have it work out well with solar panels of the current generations.
And besides that even most EU countries have enough places in them to still put a lot of solar panels without much issues and/or replacing fields.
going as far as North Africa is a bit too far to be convenient for power transport
"from North Africa to Europe" is, to be clear, ~9 miles in spots.