Brett Myers struggled through six innings for his sixth consecutive win, Hunter Pence had three hits and three RBIs, and the Houston Astros sent the Pittsburgh Pirates to their 100th loss of the season, 10-7 on Friday night.

Myers (14-7) was tagged for six runs — five earned — and six hits. He walked four and struck out one. But thanks to Pence's hitting, he tied his career high for victories, established in 2003 with Philadelphia, and kept alive his string of pitching at least six innings in all 32 starts this season.

That is the longest streak since Curt Schilling went at least six innings in all 35 starts in 2002 for Arizona.

The Pirates are secured of their record 18th straight losing season but this is Pittsburgh's first 100-loss year since 2001.

Jeff Keppinger had three hits and two RBIs for Houston, which snapped a three-game losing streak. Angel Sanchez had two hits and two RBIs and Brett Wallace had two of the Astros' 15 hits.

Brandon Lyon pitched a scoreless ninth inning for his 19th save in 21 opportunities.

Pittsburgh's Garrett Jones doubled, tripled and drove in four runs and Andy LaRoche snapped an 0-for-21 skid with his first career pinch-hit home run. Andrew McCutchen also had two hits for the Pirates and Pedro Alvarez knocked in two runs.

Pence delivered the decisive hit for Houston with a two-run double off Daniel McCutchen (2-6) during a four-run sixth inning that put the Astros ahead 8-5.

With Houston trailing 5-4, Wallace led off with a single and was sacrificed to second by Myers. Jason Bourgeois then walked and Sanchez singled home Wallace with the tying run. Pence followed with his double to right-center field and scored the final run of the inning on Keppinger's single.

The Astros scored two runs off James McDonald during a 42-pitch first inning. Pence singled home the first run and Keppinger had a sacrifice fly.

Jones had his first RBI with a ground out in the bottom of the first.

Sanchez countered with a run-scoring single in the second but the Pirates tied it 3-all in the third on Jones' two-run double.

Chris Johnson singled in a run for Houston in the top of the fifth but the Pittsburgh regained a short-lived 5-4 lead in the bottom of the inning as Jones hit a sacrifice fly and Alvarez followed with a run-scoring double.

LaRoche's home run, which hit the top of the left-field fence and bounced into the stands, came in the bottom of the sixth and cut Houston's lead to 8-6. The Pirates made it a one-run game in the seventh as Jones tripled and scored on Alvarez's sacrifice fly.

Humberto Quintero and Geoff Blum hit RBI singles in the ninth to make it 10-7.

McDonald lasted four innings, allowing three runs and five hits with two walks and four strikeouts.

Notes: Pittsburgh LF Jose Tabata left after the third inning with a sore left knee after beating out an infield single that extended his hitting streak to eight games Houston CF Michael Bourn missed his fifth straight game with a strained right oblique muscle and acknowledged that there is a strong possibility he could miss the remainder of the season The loss dropped the Pirates to 38-41 at PNC Park, costing them a chance to join the 2006 Tampa Bay Devil Rays as the only team to lose 100 games and have a winning home record in the same season.