title: ImportError: cannot import name 'quote'
body: <p>I have learned basics of python, so tried this code below</p>
  <pre><code>from pytube import YouTube
  
  Save_path=&quot;E:\python\youtube downloader&quot;
  
  link=&quot;https://www.youtube.com/watch?v=xWOoBJUqlbI&quot;
  
  try:
      yt=YouTube(link)
  
  except:
      print(&quot;Connection error!&quot;)
  
      
  mp4file=yt.filter('mp4')
  
  yt.set_filename(&quot;ashshak&quot;)
  
  d_file=yt.get(mp4files[-1].extention,mp4files[-1].resolution)
  
  try:
      d_file.download(Save_path)
  
  except:
      print(&quot;Error in downlaod&quot;)
      print(&quot;Download failed&quot;)
  </code></pre>
  <p>when I try this code or with GUI interface code I have given bellow, the compiler will show this error. but  I have already installed &quot;pip install pytube&quot; library</p>
  <pre><code>Traceback (most recent call last):
    File &quot;E:\python\youtube downloader\practiceyoutube.py&quot;, line 1, in &lt;module&gt;
      from pytube import YouTube
    File &quot;C:\Users\PC\AppData\Local\Programs\Python\Python36\lib\site-packages\pytube\__init__.py&quot;, line 16, in &lt;module&gt;
      from pytube.streams import Stream
    File &quot;C:\Users\PC\AppData\Local\Programs\Python\Python36\lib\site-packages\pytube\streams.py&quot;, line 17, in &lt;module&gt;
      from pytube import extract
    File &quot;C:\Users\PC\AppData\Local\Programs\Python\Python36\lib\site-packages\pytube\extract.py&quot;, line 7, in &lt;module&gt;
      from pytube.compat import quote
  ImportError: cannot import name 'quote'
  </code></pre>
  <p>what was the problem that I have made here. I have finished all the basic of python. So I'm aspiring to something new project in python. can anybody help me please?</p>
  <p>This was the GUI code that I had used here, but make same problem here.</p>
  <pre><code>import tkinter as tk
  
  
  from pytube import YouTube
  def downloadVid():
      global E1
      string =E1.get()
      yt = YouTube(str(string))
      videos = yt.get_videos()
      s=1
      for v in videos:
          print(str(s) + '.' + str(v))
          s +=1
      n=int(input(&quot;Enter your choice&quot;))
      vid=videos[n-1]
      destination=str(input(&quot;Enter your destination&quot;))
      vid.download(destination)
      print(yt.filename+&quot;\n Ha been downloaded&quot;)
  root=tk.Tk()
  
  w=tk.Label(root,text=&quot;Youtube Downloader&quot;)
  w.pack()
  
  
  E1=tk.Entry(root,bd=5)
  E1.pack(side=tk.TOP)
  
  
  button=tk.Button(root,text=&quot;Download&quot;,fg=&quot;red&quot;,command=downloadVid   )
  button.pack(side=tk.BOTTOM)
  
  root.mainloop()
  </code></pre>