Closed a2ys closed 2 years ago
Sorry to bother but I found a solution myself. It is a bug from the library itself. You need to follow the following steps:
pip find pytube
and go to the location on Linux or Mac.cipher.py
and edit Line 30
as:
var_regex = re.compile(r"^\$*\w+\W")
Now there will be no issues!
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pytube in c:\users\akhil\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages `(15.0.0)```
IT WAS SHOWING LIKE THIS I HOPE U CAN HELP WITH THIS I'M NOT GETTING RUN THE CODE
You seem to have Python 3.12 in your system and pytube ( underlying dependency for this app ) doesn't support Python 3.12. See this
Whenever I try to download a video, say this one Morbius Trailer, it throws the following error:
I can't find any solution for it, hope you can help!