Of these, a polyimide having the repeating structure units indicated by chemical formulas (4) to (6) below: ##STR2##shows thermoplasticity, and therefore can provide molded products of diverse shapes by means of melt molding such as compression molding, extrusion, injection molding, and the like.