The invention provides a frequency and flow changing heat pump water heater, relates to a liquid heater with a heat generation device by using a heat pump. The frequency and flow changing heat pump water heater comprises a unit part, a water circulating part, water tubes and communication lines connected inside the water circulating part. The unit part comprises a frequency-changing compressor, a cross tee change valve, a double pipe condenser, an unloading valve, an electronic expansion valve, an evaporator, a fan, a controller, various temperature sensors and pressure sensors. The water circulating part comprises a pump, an outlet valve, a ball valve, a water tank, a water temperature sensor and a filter. The frequency and flow changing heat pump water heater takes the frequency-changing compressor as the power source of the system, takes the electronic expansion valve as a throttling device and uses the water temperature sensor to prevent freezing. Compared with combustion gas, fuel oil, coal or electronic water heater, the frequency and flow changing heat pump water heater has safety, environmental protection and energy saving properties. Compared with the heat pump hot water units, the throttling of which uses rated frequency compressor and thermostatic expansion valve or capillary tubes, the frequency and flow changing heat pump water heater has high heating output power, good heating effect and good environmental adaptability.