pytube: ImportError: cannot import name 'quote' from 'pytube.compat'
When I try to run
from pytube import Youtube
It crashes and emits this error
ImportError: cannot import name 'quote' from 'pytube.compat'
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 24
- Comments: 19
pip install pytube3 worked for me
For Linux -> install library:
-> inside:
-> find:
-> and change it to:
-> how to use pytube:
try using pip install pytube3 Note: make sure to uninstall the formal version of pytube then reinstall pytube3
it will work out
try this: pytube.YouTube(“http://youtube.com/watch?v=9bZkp7q19f0”).streams.first()
Yes you can try pip install pytube3, it also worked for me
Uninstall any previous pytube versions (either pytube/pytube3)
Perform a clean start in conda/python environment as “pip install pytube3”
Go to the package location of pytube and look for file pytube/extract.py
Look for the line “parse_qs(formats[i][“cipher”]) for i, data in enumerate(formats)”
Change “cipher” —> “signatureCipher”
It will eventually work. I am using python version 3.7.7
It good working…
try. pip install pytube3
@Dhruv200329, have you uninstalled the previous version of pytube on your machine?, if not you’ll keep getting the error message, after this re-install pytube3 and it will work, cheers.