: HTTPSConnectionPool(host=', port=443)

时间:2025-01-21 07:49:28
Traceback (most recent call last): File "D:\Anaconda\envs\scrapy\lib\site-packages\urllib3\", line 654, in urlopen conn = self._get_conn(timeout=pool_timeout) File "D:\Anaconda\envs\scrapy\lib\site-packages\urllib3\", line 274, in _get_conn return conn or self._new_conn() File "D:\Anaconda\envs\scrapy\lib\site-packages\urllib3\", line 964, in _new_conn "Can't connect to HTTPS URL because the SSL " "module is not available." urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Anaconda\envs\scrapy\lib\site-packages\requests\", line 449, in send timeout=timeout File "D:\Anaconda\envs\scrapy\lib\site-packages\urllib3\", line 720, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "D:\Anaconda\envs\scrapy\lib\site-packages\urllib3\util\", line 436, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /100004788063.html (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm 2018.1.4\helpers\pydev\pydev_run_in_console.py", line 52, in run_file pydev_imports.execfile(file, globals, locals) # execute the script File "D:\Program Files\JetBrains\PyCharm 2018.1.4\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "G:/3-project/SCRAPY/", line 5, in <module> r = requests.get("/") File "D:\Anaconda\envs\scrapy\lib\site-packages\requests\", line 75, in get return request('get', url, params=params, **kwargs) File "D:\Anaconda\envs\scrapy\lib\site-packages\requests\", line 60, in request return session.request(method=method, url=url, **kwargs) File "D:\Anaconda\envs\scrapy\lib\site-packages\requests\", line 533, in request resp = self.send(prep, **send_kwargs) File "D:\Anaconda\envs\scrapy\lib\site-packages\requests\", line 646, in send r = adapter.send(request, **kwargs) File "D:\Anaconda\envs\scrapy\lib\site-packages\requests\", line 514, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /100004788063.html (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))