The cross sections for vibrational excitations of O2 through collisions with electron are calculated using the nonlocal discrete-state-in-continuum model and its local approximation and compared to experimental results.