<twisted.python.failure.Failure OpenSSL.SSL.Error: [(‘SSL routines‘, ‘‘, ‘unexpected eof while readi

scrapy请求时错误

2022-08-17 14:17:52 [scrapy.core.scraper] ERROR: Error downloading 
Traceback (most recent call last):
  File "D:\SoftWare\anaconda3\lib\site-packages\scrapy\core\downloader\middleware.py", line 49, in process_request
    return (yield download_func(request=request, spider=spider))
twisted.web._newclient.ResponseNeverReceived: []

解决[1]

1、升级卸载pyopenssl重新安装
2、重新安装后还是有报错

    from cryptography import utils, x509
ImportError: cannot import name 'utils' from 'cryptography' (unknown location)

解决[2]

1、安装指定的版本
cryptography==3.4.7

你可能感兴趣的:(爬虫,python,开发语言)