Are there any spaces with vanishing homotopy groups but not contractible? [closed]

I'm studying basic Algebraic Topology. Here is my question:

Let $X$ be a space with $\pi_i(X)=0$ for all $i$.

Then, $X$ should be contractible?

(If $X$ is CW-complex, then cell-by cell argument works and this is true.)

-
See the "quasi-circle" example in Hatcher, exercise 7 section 1.3. It has trivial homotopy groups but it's not contractible. –  Ryan Budney Dec 7 '11 at 8:24
This type of question is probably best put on math.stackexchange.com, as its a common example in introductory algebraic topology courses. –  Ryan Budney Dec 7 '11 at 9:07