After she attacks you, you shouldn't pick her up and hold her til she calms down.
That is a reward. That is going to teach her to attack you, as it is a reward. One more time of that and you will have a dog that bites people pretty reliably every time it wants something or doesn't get something it wants.
It is not 'aw it is just cute widdle puppy, it don't mean nothin''. No matter HOW you hold it, it is a reward if it isn't an actual, obvious, clear and immediate correction that actually HALTS that behavior - IMMEDIATELY.
At this age they are as smart as they are ever going to be, and they can put an immediate punishment with a behavior and learn, 'That is not allowed'.
This is when dogs start forming habits that they keep their whole lives. This baby period is their foundation.
You don't EVER want to get this sort of behavior started, because it will end with some bit up people and a your dog at Animal Control getting put down.
If a pup attacks you, you discipline it, same like its mother would. Put it on its back and give it a good shake and growl, 'NOOOO!'
Do it VERY VERY FAST - like lightning, RIGHT when she attacks you.
You don't hold it til it calms down. That is saying, 'good dog, good for attacking me'.
If you keep going how you are going, you're going to have a lot of bit up people and a dog that Animal Control takes and puts down. And while even a chihuaha can bite pretty nasty, this dog is going to rapidly grow toward a hundred and fifty pounds or more. This is NOT something you just cuddle up with when it bites.
Pyrenees are very smart, active and protective dogs. They also are very stubborn at times and they test the waters like any dog. If you don't teach them WHAT to protect, they are going to be protecting their feed bowl from your hand and their chew toy from the neighbor's baby's face. Those instincts need training.