The COMPASS experiment at CERN performed in 2015 and 2018 Drell-Yan measurements using a 190 GeV negative pion beam scattering off a NH3 target and nuclear aluminium and tungsten targets. We will present the differential cross section obtained from that measurement in the kinematic in x-Feynman, transverse momentum, and mass. The results will be valuable input for constraining parton distribution functions (PDFs) of the pion. We will present preliminary results on Drell-Yan cross sections and compare them to fixed-order QCD calculations with different pion PDFs. The kinematic dependence of nuclear effects in Drell-Yan production will be investigated by comparing the cross sections from three targets of different nuclear mass.