작성
·
840
1
Could not fetch URL https://pypi.org/simple/finance-datareader/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/finance-datareader/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping Requirement already up-to-date: finance-datareader in c:\programdata\anaconda3\lib\site-packages (0.9.1) Requirement already satisfied, skipping upgrade: pandas>=0.19.2 in c:\programdata\anaconda3\lib\site-packages (from finance-datareader) (0.25.1) Requirement already satisfied, skipping upgrade: requests>=2.3.0 in c:\programdata\anaconda3\lib\site-packages (from finance-datareader) (2.22.0) Requirement already satisfied, skipping upgrade: lxml in c:\programdata\anaconda3\lib\site-packages (from finance-datareader) (4.4.1) Requirement already satisfied, skipping upgrade: requests-file in c:\programdata\anaconda3\lib\site-packages (from finance-datareader) (1.5.1) Requirement already satisfied, skipping upgrade: python-dateutil>=2.6.1 in c:\programdata\anaconda3\lib\site-packages (from pandas>=0.19.2->finance-datareader) (2.8.0) Requirement already satisfied, skipping upgrade: pytz>=2017.2 in c:\programdata\anaconda3\lib\site-packages (from pandas>=0.19.2->finance-datareader) (2019.3) Requirement already satisfied, skipping upgrade: numpy>=1.13.3 in c:\programdata\anaconda3\lib\site-packages (from pandas>=0.19.2->finance-datareader) (1.19.5) Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.3.0->finance-datareader) (1.24.2) Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.3.0->finance-datareader) (3.0.4) Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.3.0->finance-datareader) (2.8) Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests>=2.3.0->finance-datareader) (2019.9.11) Requirement already satisfied, skipping upgrade: six in c:\programdata\anaconda3\lib\site-packages (from requests-file->finance-datareader) (1.15.0) Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))) - skipping
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /simple/finance-datareader/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /simple/finance-datareader/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /simple/finance-datareader/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /simple/finance-datareader/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /simple/finance-datareader/
답변 1
1
--trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org
뒤에 붙이니까 되네요.
안녕하세요. 다행히 해결방법을 찾으셨네요.
오류 메시지를 보니 파이썬 설치시에 인증서가 함께 설치되지 않은 것으로 보여집니다.
설치된 파이썬을 찾아서 아래의 Install Certificates.command 를 실행해 주시면 SSL 인증문제가 해결될 때가 많습니다.
아래의 방법도 진행해 보세요!