urllib3.exceptions.SSLError: Can‘t connect to HTTPS URL because the SSL module is not available.


python requests.get错误,

urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.

1.在虚拟环境中:
pip install pyOpenSSL
2.添加环境变量
F:\Anaconda\envs\open3d\Library\bin
3.重启pycharm

313. tcName: 0009-0005-0021, status: pass Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 692, in urlopen conn = self._get_conn(timeout=pool_timeout) File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 281, in _get_conn return conn or self._new_conn() File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1009, in _new_conn raise SSLError( urllib3.exceptions.SSLError: Can&#39;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 "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen retries = retries.increment( File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=&#39;kk.alibaba-inc.com&#39;, port=443): Max retries exceeded with url: /avms-server/api/task/getProcessName?taskProcessId=080bbe31-3f24-4695-b99e-6a57a51b32fe (Caused by SSLError("Can&#39;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 "/tmp/Auto/06a4a1b9-5de7-424b-981b-70689d16ef20/BIOSValidationTest/BIOS_Test/BIOSuplog.py", line 191, in <module> Tcresult = TcresultSummary( File "/tmp/Auto/06a4a1b9-5de7-424b-981b-70689d16ef20/BIOSValidationTest/BIOS_Test/BIOSuplog.py", line 138, in __init__ self.get_action_name() File "/tmp/Auto/06a4a1b9-5de7-424b-981b-70689d16ef20/BIOSValidationTest/BIOS_Test/BIOSuplog.py", line 144, in get_action_name keys = requests.get(url_str, auth=HTTPBasicAuth(&#39;YXZtcy1hcGlNbXFaMmJtNQ==&#39;, &#39;ZWU3ZjcxYjg4MTRmY2Q5ODBlZjlmNzEwZGMzM2YxN2I=&#39;)).json() File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 698, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host=&#39;kk.alibaba-inc.com&#39;, port=443): Max retries exceeded with url: /avms-server/api/task/getProcessName?taskProcessId=080bbe31-3f24-4695-b99e-6a57a51b32fe (Caused by SSLError("Can&#39;t connect to HTTPS URL because the SSL module is not available.")) 1kingkong-process-exit
最新发布
07-05
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值