如何为Jupyter笔记本电脑手动安装铬?

时间:2020-04-15 04:11:12

标签: python jupyter-notebook screen-scraping chromium

运行以下代码字符串后:

await r.html.arender()

我得到结果:

[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.

此后,我收到一堆错误,但它不起作用,那么,如何在jupyter上手动安装铬?还有其他方法可以解决此问题吗?还是我可以正常安装铬?

我想补充一点,在安装anaconda时,我在安装时将anaconda添加到了我的PATH变量中,这不是推荐的选项。推荐的选项是将anaconda注册为默认python。这就是为什么有问题吗?

编辑:错误:

Error                                     Traceback (most recent call last)
~\anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname)
    484             try:
--> 485                 cnx.do_handshake()
    486             except OpenSSL.SSL.WantReadError:

~\anaconda3\lib\site-packages\OpenSSL\SSL.py in do_handshake(self)
   1933         result = _lib.SSL_do_handshake(self._ssl)
-> 1934         self._raise_ssl_error(self._ssl, result)
   1935 

~\anaconda3\lib\site-packages\OpenSSL\SSL.py in _raise_ssl_error(self, ssl, result)
   1670         else:
-> 1671             _raise_current_error()
   1672 

~\anaconda3\lib\site-packages\OpenSSL\_util.py in exception_from_error_queue(exception_type)
     53 
---> 54     raise exception_type(errors)
     55 

Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:

SSLError                                  Traceback (most recent call last)
~\anaconda3\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    671                 headers=headers,
--> 672                 chunked=chunked,
    673             )

0 个答案:

没有答案