Imp.cinfigure command is deprecated

When I build code it is showing imp.configure command is deprecated. How should I solve this error?

Just remove the imp.configure line from your code. It no longer does anything - it was from back in the days before there were agents!