I'm using Python 3.13 and ran into the same problem. I found out about the library pytubefix
, which basically is a working version of pytube
. I stumbled upon it randomly while checking out this github repository.
Try installing it using pythom -m pip install pytubefix
, import it in your program and it should work just fine.