D&D is largely about cooperation and teamwork. If it's just 1 player and 1 DM, you're missing out on the party dynamic which gives the game a lot of its life.
That being said, I think you can run a fun 1-person RPG.. I'm not sure that I'd use D&D though. More narratively-focused games like the white wolf suite might be a bit better suited for it.