The durable and reliable work of piston compressors and pumps used in the oil and gas industry has great importance for practice. Investigation of complex problems with respect to mechanical and thermodynamic phenomena in compressors and pumps gives the opportunity to solve the problems of increasing the durability of oil and gas exploitation and transportation. Increasing the efficiency and durability of the compressor-pump stations directly depends on the correct calculations and designing of the different elements and mechanical parameters of piston machines. The problem of determining the forces affecting the crank-piston mechanisms of the piston compressors arises during the study of the friction process in the working parts, as well as the study of the oscillating movement of the moving crankshaft of this compressor. The indicated forces periodically depend on the angle, time, and rotation of the crankshaft of this compressor, as a result of which they create forces at various nodes of the piston mechanism and the shaft of the compressor machine. These specified conditions can create dangerous stresses that can cause the compressor connecting rod and crankshaft to break. In this work, in terms of its special characteristics, the forces affecting the piston compressor's lever-slider mechanism are determined by taking into account the main factors accompanying the working process. The results of the investigation can be useful for the design and exploitation of compressor stations used in the oil and gas industry.