With advancements in technology, scientists are delving deeper in their explorations of the universe. Integral field spectrograph (IFS) play a significant role in investigating the physical properties of supermassive black holes at the centers of galaxies, the nuclei of galaxies, and the star formation processes within galaxies, including under extreme conditions such as those present in galaxy mergers, ultra-low-metallicity galaxies, and star-forming galaxies with strong feedback. IFS transform the spatial field into a linear field using an image slicer and obtain the spectra of targets in each spatial resolution element through a grating. Through scientific processing, two-dimensional images for each target band can be obtained. IFS use concave gratings as dispersion systems to decompose the polychromatic light emitted by celestial bodies into monochromatic light, arranged linearly according to wavelength. In this experiment, the working environment of a star was simulated in the laboratory to facilitate the wavelength calibration of the space integral field spectrometer. Tools necessary for the calibration process were also explored. A mercury–argon lamp was employed as the light source to extract characteristic information from each pixel in the detector, facilitating the wavelength calibration of the spatial IFS. The optimal peak-finding method was selected by contrasting the center of weight, polynomial fitting, and Gaussian fitting methods. Ultimately, employing the 4FFT-LMG algorithm to fit Gaussian curves enabled the determination of the spectral peak positions, yielding wavelength calibration coefficients for a spatial IFS within the range of 360 nm to 600 nm. The correlation of the fitting results between the detector pixel positions and corresponding wavelengths was >99.99%. The calibration accuracy during wavelength calibration was 0.0067 nm, reaching a very high level.