The pistol squat requires mobility, strength, and balance. If you're not there yet, try the box squat version. Progress by using a lower box.
The bodyweight pistol squat is worth learning. If you've never tried one, give it a shot right now. Tougher than you thought, huh?
A great way to learn the pistol is to use a box. Start with a high box and work your way down to a lower box. Then get rid of the box.
How to Stop Sucking At Pistol Squats
Fix Your Ankle Mobility For Deeper Squats