Isolated attosecond pulse generation in argon is theoretically investigated for different gas pressures and medium lengths. The output of attosecond pulse is effectively enhanced by using a longer gas medium with optimized pressure. The peak intensity of the attosecond pulse by using 6 mm gas medium is doubled compared with that of 1–3 mm gas cell, which is usually used in the experiment. Our simulation shows that the distortion of the driving laser waveform and the absorption are the main factors that limit the output of the attosecond pulse for the long gas medium. Optimized generation condition could be found by balancing the medium length and pressure.