discourage dog from peeing on carpet...and go to the door wanting out
No reputable breeder would consider selling a 6 week old pup...so, like everyone else, I am hoping you meant 6 months old. However, if your pup is only 6 weeks old, muscles are not developed enough to enable her to wait to go outside when she needs to go and she is too young to have learned to ask yet either.
But assuming that your little lass is really 6 months old: Every dog is different and each one learns at their own speed. Your previous little guy was easy to train and your current little one is not catching on so fast. My Faelee was almost 6 months old before she was reliably housebroken...all my previous sheltie pups were fully housebroken by 4 months at the latest...same training method used. Faelee is a very smart and responsive little gal, just a different personality.
When an older pup (or even an adult foster/rescue that has not been previously housebroken) just isn't "getting it" about not going in the house I go back to step one and start over as if I was dealing with a tiny pup. Take her outside after every nap, every drink, every meal and any playtime. At the door use a phrase like..."Do you need to go out?" so she couples that question with the door and going outside...eventually you will be able to ask her "Do you need to go out" and she will run to the door if she does. Stay outside with her long enough for her to get past exploring, sniffing, etc., and give her a reasonable time to do her business. Praise big time when she finally goes, even if you are ready to ring her pretty little neck because you have been standing outside in the pouring rain for 15 minutes waiting for the "big event". If she loves to play ball or with a toy, take a few minutes to play with her outside as an extra reward AFTER she has done her business...she will quickly learn that doing her business outside means good things will happen. If your pup hasn't done her business after a reasonable time and you are not going to be able to keep an eye on her once you get back in the house, I suggest crating her until you do have time to keep track of her movements and until you have time to take her back outside...just make sure the crate is large enough that if she does have an accident she has plenty of room to lie down well away from the mess. Or you can use the "apron string" approach and tie her to you with a lead so that she has to be where you are while you are moving about the house and she can't run off and pee on the carpet.
When outside, start to teach a "trigger command" so that she can learn to go when you remind her and you won't have to be waiting for what seems like forever for her to do her business. Use any word/phrase you want..."go potty", "hurry up", etc. Make sure you say the command the instant she starts to go and make sure you always use the exact same command so that she learns to associate those words with the action...timing and consistency are really important. It is no different from teaching "sit" or "down" by using the method of waiting until your pup starts to sit or lie down and saying "sit" or "down" as they do the motion so that they make that association.
I never yell or scold when a pup/adult dog has had an accident in the house. I don't want any fear or negativity to be associated with housebreaking and usually the accident is my fault anyway for not having been "on the ball" and catching any indication that the pup/dog might need to go outside before they have learned yet how to "tell me" when they need to go.
BTW if she has chosen just one particular spot where she does her accidents...try putting her food dish there and feeding her on that spot to break that habit. Most dogs won't eliminate right where they eat.
She WILL get it...maybe not as fast as you wish she would...but it will happen.
Trini and my gang.