Abstract: Hydrocarbons are recovered from a sub-surface reservoir whereby a production flow is subjected to a separation process in the well hole. Gas and liquid are separated from each other using a cyclone separator, and condensate/oil is separated from water at high pressure in a subsequent cyclone separation. Membranes are used to separate unwanted gases, includeing H.sub.2 S, CO.sub.2 and H.sub.2 O, using membranes under high pressure in the well hole.