Traceback (most recent call last):
File "douyin.py", line 11, in
from requests_html import HTMLSession
File "C:\Python\lib\site-packages\requests_html.py", line 9, in
import pyppeteer
File "C:\Python\lib\site-packages\pyppeteer__init.py", line 30, in
from pyppeteer.launcher import connect, launch, executablePath # noqa: E402
File "C:\Python\lib\site-packages\pyppeteer\launcher.py", line 24, in
from pyppeteer.browser import Browser
File "C:\Python\lib\site-packages\pyppeteer\browser.py", line 13, in
from pyppeteer.connection import Connection
File "C:\Python\lib\site-packages\pyppeteer\connection.py", line 12, in
import websockets
File "C:\Python\lib\site-packages\websockets\init__.py", line 3, in
from .auth import *
File "C:\Python\lib\site-packages\websockets\auth.py", line 15, in
from .server import HTTPResponse, WebSocketServerProtocol
File "C:\Python\lib\site-packages\websockets\server.py", line 49, in
from .protocol import WebSocketCommonProtocol
File "C:\Python\lib\site-packages\websockets\protocol.py", line 18, in
from typing import (
ImportError: cannot import name 'Deque'
Traceback (most recent call last): File "douyin.py", line 11, in
from requests_html import HTMLSession
File "C:\Python\lib\site-packages\requests_html.py", line 9, in
import pyppeteer
File "C:\Python\lib\site-packages\pyppeteer__init.py", line 30, in
from pyppeteer.launcher import connect, launch, executablePath # noqa: E402
File "C:\Python\lib\site-packages\pyppeteer\launcher.py", line 24, in
from pyppeteer.browser import Browser
File "C:\Python\lib\site-packages\pyppeteer\browser.py", line 13, in
from pyppeteer.connection import Connection
File "C:\Python\lib\site-packages\pyppeteer\connection.py", line 12, in
import websockets
File "C:\Python\lib\site-packages\websockets\ init__.py", line 3, in
from .auth import *
File "C:\Python\lib\site-packages\websockets\auth.py", line 15, in
from .server import HTTPResponse, WebSocketServerProtocol
File "C:\Python\lib\site-packages\websockets\server.py", line 49, in
from .protocol import WebSocketCommonProtocol
File "C:\Python\lib\site-packages\websockets\protocol.py", line 18, in
from typing import (
ImportError: cannot import name 'Deque'