A pump drive for an automatic drug compounder may be provided. The pump drive may include a pump head assembly with a plurality of operational mechanisms controllable to operate a pump cartridge to pump fluids through the cartridge to a vial containing a drug, or to pump a reconstituted drug to a receiving container. The pump drive may include a vial lift vial grip configured to retrieve the vial from a vial tray and lift the vial such that a needle assembly of the pump cartridge extends into the vial through sealing membranes of the cartridge and a vial puck attached to the vial. The pump head assembly may be rotatable to agitate and/or invert the vial. The operational mechanism may include an eccentric drive for driving a piston pump of the cartridge and a plurality of valve actuators for operating valves of the pump cartridge.