我想使用python的第三方库,但是我的IDE给我一个错误代码:

D:\untitled\venv\Scripts\python.exe "D:/py code/venv/sxsxsxsxs.py"
Traceback (most recent call last):
File "D:\untitled\venv\lib\site-packages\urllib3\connectionpool.py", line 597, in urlopen
self._prepare_proxy(conn)
File "D:\untitled\venv\lib\site-packages\urllib3\connectionpool.py", line 807, in _prepare_proxy
conn.connect()
File "D:\untitled\venv\lib\site-packages\urllib3\connection.py", line 370, in connect
ssl_context=context)
File "D:\untitled\venv\lib\site-packages\urllib3\util\ssl_.py", line 355, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "F:\the low ide of python\lib\ssl.py", line 412, in wrap_socket
session=session
File "F:\the low ide of python\lib\ssl.py", line 853, in _create
self.do_handshake()
File "F:\the low ide of python\lib\ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056) During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "D:\untitled\venv\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\untitled\venv\lib\site-packages\urllib3\connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "D:\untitled\venv\lib\site-packages\urllib3\util\retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.baidu.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))) During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "D:/py code/venv/sxsxsxsxs.py", line 3, in <module>
response=requests.get(url)
File "D:\untitled\venv\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "D:\untitled\venv\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "D:\untitled\venv\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "D:\untitled\venv\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "D:\untitled\venv\lib\site-packages\requests\adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.baidu.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))) 进程已结束,退出代码 1

我觉得不应该是因为软件本身的原因,也许是我还有没有配置好,希望明天我可以使用那些世界上最棒的第三方库,另外,我的IDE使用的 project interpreter 是IDLE,我很好奇为什么最好的pythonIDE不会自带或者有官方的project interpreter 而要用户去自己下载一个外部组件作为它的PIT,并且,在设定路径时,连IDLE的全体文件都不需要包括,直接用.exe就可以了,难道这不会出乱子吗???也许是我学的东西太少了,不对,是本来学的东西就少。继续努力了。

05-28 15:59