F2 can’t be made by chemistry — every solvent reacts with it — so anhydrous HF is dissolved in molten KF·2HF at ~100 °C and electrolyzed in a nickel cell; F2 comes off the anode.