title: Why is the python library requests_html not working?
body: <p>I am trying to make a python program that gets stock market data. I have not started it yet because the requests_html library has an error. My program will use the python library, yahoo_fin, and yahoo_fin uses requests_html, which is not working. I have already successfully installed all the other necessary dependencies, including ftplib and pandas.</p>
  
  <p>I have already tried installing requests_html using various console commands. First I tried using:</p>
  
  <pre><code>pip3 install requests_python
  </code></pre>
  
  <p>The library <em>did</em> install, but returned errors when i tried to import it into my program. Then I researched it, and some people apparently found success with <em>this</em> command:</p>
  
  <pre><code>pip3 install requests-python
  </code></pre>
  
  <p>However, neither of these worked and I was left with these error messages both times:</p>
  
  <pre><code>&gt;&gt;&gt; import requests_html
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests_html.py", line 9, in &lt;module&gt;
      import pyppeteer
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyppeteer/__init__.py", line 30, in &lt;module&gt;
      from pyppeteer.launcher import connect, launch, executablePath  # noqa: E402
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyppeteer/launcher.py", line 24, in &lt;module&gt;
      from pyppeteer.browser import Browser
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyppeteer/browser.py", line 13, in &lt;module&gt;
      from pyppeteer.connection import Connection
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyppeteer/connection.py", line 12, in &lt;module&gt;
      import websockets
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websockets/__init__.py", line 3, in &lt;module&gt;
      from .auth import *
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websockets/auth.py", line 15, in &lt;module&gt;
      from .server import HTTPResponse, WebSocketServerProtocol
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websockets/server.py", line 49, in &lt;module&gt;
      from .protocol import WebSocketCommonProtocol
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/websockets/protocol.py", line 18, in &lt;module&gt;
      from typing import (
  ImportError: cannot import name 'Deque'
  </code></pre>
  
  <p>And when I try to use the yahoo_fin library I get this message:</p>
  
  <pre><code>Warning - Certain functionality requires requests_html,
               which is not installed.  Install using: 
               pip install requests_html
  
               After installation, you may have to restart your Python session.
  </code></pre>
  
  <p>I have already tried using</p>
  
  <pre><code>pip install requests_html
  </code></pre>
  
  <p>but it installs the library to python 2.7.15, the default python version on my computer.</p>