The invention discloses a direct drive motor-based walking beam pumping unit, comprising a base; a support is arranged at the upper end of the base; a walking beam is arranged at the upper end of the support; a horsehead is arranged at a first of the walking beam; a lifting rope is arranged on the horsehead and a beam hanger is arranged on the lifting rope; a balance weight is arranged at a second end of the walking beam away from the horsehead; a barrel is arranged at the upper end of the base; a direct drive motor is arranged at the upper end of the barrel. The invention cancels the combination of belt, belt pulley and reducer conventionally used in the pumping unit, greatly lowering the failure rate of the pumping unit, decreasing the frequency of maintenance and service, reducing the cost in use and improving the production efficiency.