Pytube: Issue in extract.py - import quote

Created on 13 Mar 2020  路  3Comments  路  Source: pytube/pytube

Got this error while importing YouTube

File "/usr/local/lib/python3.5/dist-packages/pytube/__init__.py", line 16, in
from pytube.streams import Stream
File "/usr/local/lib/python3.5/dist-packages/pytube/streams.py", line 17, in
from pytube import extract
File "/usr/local/lib/python3.5/dist-packages/pytube/extract.py", line 7, in
from pytube.compat import quote
ImportError: cannot import name 'quote'

Most helpful comment

Working now, switched from python 3.5 to 3.8 and installed pytube3. Thanks.

All 3 comments

I think that is a problem with the pytube, uninstalling pytube and installing pytube3 solved the problem in my case.

Correct. Also, you will need to use Python 3.6 or above

Working now, switched from python 3.5 to 3.8 and installed pytube3. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aklajnert picture aklajnert  路  23Comments

JMIdeaMaker picture JMIdeaMaker  路  20Comments

xenonstride picture xenonstride  路  19Comments

RONNCC picture RONNCC  路  29Comments

RONNCC picture RONNCC  路  20Comments