We study the effect of two non-interacting impurity atoms near by a one-dimensional nanowire, which is modeled as a tight-binding hopping model. The virtual single-electron hopping between two impurities will induce an additional energy depending on the distance of two impurities, which gives a electronic Casimir-Polder effect. We find that the Casimir-Polder force between the two impurities decreases with the impurity-impurity distance exponentially. And the effects of nanowire and finite temperature on the Casimir-Polder force are also discussed in detail, respectively.