安装
pip3 install pyppeteer
下载chromium
pyppeteer-install
报错
[simple@redhat_1 pyppetter]$ pyppeteer-install
[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
Traceback (most recent call last):
File "/home/simple/.local/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/home/simple/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 80, in create_connection
raise err
File "/home/simple/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/simple/.local/lib/python3.6/sit

在使用pyppeteer进行Chromium下载时遇到urllib3问题和网络阻塞问题。解决方法包括修复urllib3和寻找替代下载途径以克服网络障碍。
最低0.47元/天 解锁文章
336

被折叠的 条评论
为什么被折叠?



