It can be frustrating that it hurts when you walk, but walking is good for you. Slowly try to increase the distance you can walk. You will find that gradually you can walk further without pain. Exercise conditions your muscles so they can use oxygen more effectively.