This tutorial explains how to download private or ratelimited (Sign in to confirm you're not a bot) videos & playlists, or rather: videos you need to be logged in for. I can't guarantee this will work ...
When using PyCharm, set the virtual environment using 'File or PyCharm'->'Settings' and select your project from the left menu. Select 'Project Interpreter', click on the gearwheel button and select ...