With the help of the method of similarity transformations, an approach is considered that makes it possible to find particular solutions of the Gross–Pitaevskii equation with a nonstationary coefficient of nonlinearity in prolate spheroidal coordinates. Two exact solutions are found in explicit form, having soliton properties, along with the corresponding potentials. The form of the solutions is illustrated by examples.