itsource

pip 설치가 실패하고 "연결 오류: [SSL: CERTIFICATE_VERIFY_FAILED] 인증서 검증 실패(_ssl.c:598)"가 표시됨

mycopycode 2022. 10. 5. 22:31
반응형

pip 설치가 실패하고 "연결 오류: [SSL: CERTIFICATE_VERIFY_FAILED] 인증서 검증 실패(_ssl.c:598)"가 표시됨

이라 Python에 .> pip install linkcheckerWindows 7 의 windows 。★★★★★★★★★★★★★★★★★★:

  • 를 들어, 「」라고 하는 것은,> pip install scrapy, SSL에러가 합니다.
  • Python 3.4.1의 pip 1.5.6의 Python.가장 먼저 시도했던 것은 링크 체커를 설치하는 것이었습니다.Python 2.7은 ArcGIS를 사용합니다.python ★★★★★★★★★★★★★★★★★」pip3.4.1을 까지 명령줄에서 사용할 수 .
  • > pip search linkchecker아마도 pip 검색이 사이트의 SSL 인증서를 확인하지 않기 때문일 것입니다.
  • 회사 네트워크에 접속하고 있습니다만, 인터넷에 접속하기 위해서 프록시를 경유하는 것은 아닙니다.
  • 각 회사 컴퓨터(내 컴퓨터 포함)에는 신뢰할 수 있는 루트 인증 기관이 있으며 https://google.com에 대한 TLS 트래픽 모니터링을 비롯한 다양한 이유로 사용됩니다.그게 그것과 관련이 있는지는 잘 모르겠어요.

실행 후 pip.log의 내용은 다음과 같습니다.pip install linkchecker:

Downloading/unpacking linkchecker
  Getting page https://pypi.python.org/simple/linkchecker/
  Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)
  Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker
  Getting page https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/ (Caused by <class 'http.client.CannotSendRequest'>: Request-sent)
  Will skip URL https://pypi.python.org/simple/ when looking for download links for linkchecker
  Cannot fetch index base URL https://pypi.python.org/simple/
  URLs to search for versions for linkchecker:
  * https://pypi.python.org/simple/linkchecker/
  Getting page https://pypi.python.org/simple/linkchecker/
  Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)
  Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker
  Could not find any downloads that satisfy the requirement linkchecker
Cleaning up...
  Removing temporary dir C:\Users\jcook\AppData\Local\Temp\pip_build_jcook...
No distributions at all found for linkchecker
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python34\lib\site-packages\pip\req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "C:\Python34\lib\site-packages\pip\index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for linkchecker
pip install gensim config --global http.sslVerify false

"config --global http.sslVerify false" 문이 있는 패키지를 설치합니다.

및 이전 호스트와 신뢰할 수 있는 호스트를 설정하여 SSL 오류를 무시할 수 있습니다.

$ pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <package_name>

참고: 2018년 4월 중에 Python 패키지 인덱스가 에서 마이그레이션되었습니다.pypi.python.org로로 합니다.pypi.org하는 "더 "trusted-host" 명령어는 둘다 할 수 을 의미합니다.

영구 수정

10 pip 10.0을 업그레이드하는 만으로 이 할 수 .pip 자체 명령어:

$ pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pip setuptools

또는 재설치만 하면 최신 버전을 얻을 수 있습니다.

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

하고 나서 실행)get-pip.pyPython の 터터터터 ) 。

pip install <otherpackage> 않은 작업을 .그렇지 않은 경우 아래 설명과 같이 더 많은 작업을 수행해야 합니다.


신뢰할 수 있는 호스트와 프록시를 구성 파일에 추가할 수 있습니다.

pip.ini (Windows) ★★pip.conf (카메라에)

[global]
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org

대체 솔루션(보안성이 낮음)

대부분의 답변은 보안 문제를 일으킬 수 있습니다.

대부분의 python 패키지를 쉽게 설치하는 데 도움이 되는 두 가지 해결 방법은 다음과 같습니다.

  • using easy_install: 너무 귀찮아서 시간을 낭비하고 싶지 않다면easy_install <package_name>되지 않거나 할 수 . 일부 패키지가 발견되지 않거나 작은 오류가 발생할 수 있습니다.
  • Wheel 사용: python 패키지의 Wheel을 다운로드하여 pip 명령을 사용합니다.pip install wheel_package_name.whl패키지를 설치합니다.

다음 매개 변수를 사용하여 인증서를 지정할 수 있습니다.

pip --cert /etc/ssl/certs/FOO_Root_CA.pem install linkchecker

참조: Docs © Reference Guide © pip

귀사의 루트 증명서를 지정할 수 없는 경우 cURL을 사용할 수 있습니다.http://curl.haxx.se/ca/cacert.pem

CRT 파일이 아닌 PEM 파일을 사용해야 합니다. CRT 파일이 있는 경우 파일을 PEM으로 변환해야 합니다.댓글에 이것이 CRT 파일로 동작한다고 하는 리포트가 있습니다만, 아직 검증하지 않았습니다.

, SSL Cert Verification(SSL 증명서 검증)을 확인합니다.

했습니다.pip , 「」, 「」를 지정합니다.pip.iniC:\Users\<username>\AppData\Roaming\ 추가:

C:\Users\<username>\AppData\Roaming\pip\pip.ini

그 안에 이렇게 써놨어요.

[global]
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org

python을 재기동하여 pip은 이 사이트들을 영구적으로 신뢰하고 패키지를 다운로드하기 위해 사용하였습니다.

AppData 폴더를 찾을 수 .%appdata%파일 탐색기에 표시되어야 합니다.

kenorb의 대답은 매우 유용하다(그리고 훌륭하다!).
중 것은 일 것이다.--trusted-host

예를 들어, 이 경우 다음과 같이 할 수 있습니다.

pip install --trusted-host pypi.python.org linkchecker

pem 파일(또는 다른 파일)은 불필요합니다.

답은 꽤 비슷하고 약간 혼란스럽다.제 경우, 회사 네트워크상의 증명서가 문제였습니다.다음을 사용하여 문제를 해결할 수 있었습니다.

pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org oauthlib -vvv

여기 보시는 것처럼.자세한 출력이 필요하지 않은 경우 -vvv 인수를 생략할 수 있습니다.

영구 수정 - pip 구성

netscope 관련 회사 네트워크 보안으로 인해 ssl 문제가 발생했습니다.내 머신은 python 3.9가 설치된 windows 10인데 다음 명령어가 작동했다.

pip config set global.trusted-host \
    "pypi.org files.pythonhosted.org pypi.python.org" \
    --trusted-host=pypi.python.org \
    --trusted-host=pypi.org \
    --trusted-host=files.pythonhosted.org

여기서 pip은 이러한 사이트를 영구적으로 신뢰하고 있으며, 이제 패키지를 다운로드하는 데 사용할 수 있습니다.

영구 수정

pip install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org

예:

pip install <package name> --trusted-host pypi.org --trusted-host files.pythonhosted.org

저는 이 답변 블로그에 나와 있는 대부분의 솔루션을 시도했지만, 모두 작동하지 않았습니다. python 패키지를 설치하려고 할 때 이것을 가지고 있었습니다.

다음 명령어를 실행하면 성공합니다.

python -m pip install PACKAGENAME --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org 

가장 간단한 방법은 https://www.digicert.com/digicert-root-certificates.htm#roots에서 DigiCert에서 "DigiCert High Assurance EV Root CA"를 다운로드하여 사용하는 것입니다.

https://pypi.python.org/에 접속하여 주소 표시줄의 잠금 아이콘을 클릭하여 증명서 발급자를 확인하거나 openssl을 사용하여 geek credent를 높일 수 있습니다.

$ openssl s_client -connect pypi.python.org:443
CONNECTED(00000003)
depth=1 /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/businessCategory=Private Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=3359300/street=16 Allen Rd/postalCode=03894-4801/C=US/ST=NH/L=Wolfeboro,/O=Python Software Foundation/CN=www.python.org
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA

증명서 체인의 마지막 CN 값은 다운로드해야 하는 CA 이름입니다.

일회성으로 다음 작업을 수행합니다.

  1. DigiCert에서 CRT 다운로드
  2. CRT를 PEM 형식으로 변환합니다.
  3. PIP_CERT 환경변수를 PEM 파일 경로로 내보냅니다.

(마지막 행은 bash 셸을 사용하고 있는 것을 전제로 하고 있습니다).

curl -sO http://cacerts.digicert.com/DigiCertHighAssuranceEVRootCA.crt 
openssl x509 -inform DES -in DigiCertHighAssuranceEVRootCA.crt -out DigiCertHighAssuranceEVRootCA.pem -text
export PIP_CERT=`pwd`/DigiCertHighAssuranceEVRootCA.pem

이 기능을 다시 사용하려면 DigiCertHighAssurance를 넣으십시오.EVRootCA.crt는 공통으로 ~/.bashrc에 따라 PIP_CERT를 내보냅니다.

하려면 , 있는 것이 할 수 있습니다.pip.conffilename을 클릭합니다.

가 바로 '자신이 있는 곳'입니다.pip.conf설명서에 따라 다음과 같이 해야 합니다.

에서는, 은 UNIX 「」, 「」입니다.$HOME/.config/pip/pip.confXDG_CONFIG_HOME: XDG_CONFIG_HOME.

에서는, 파일은 macOS 입니다.$HOME/Library/Application Support/pip/pip.conf 디렉토리 if " " "$HOME/Library/Application Support/pip else " " " 。$HOME/.config/pip/pip.conf

에서는, 설정 은 Windows 의 「」, 「」, 「」입니다.%APPDATA%\pip\pip.ini.

가상 환경 내부:

및 은 Unix "macOS" 입니다.$VIRTUAL_ENV/pip.conf

에서는, 의 은 다음과 같습니다.%VIRTUAL_ENV%\pip.ini

의 ★★★★★★★★★★★★★★★★★.pip.conf뭇매를 맞다

[global]
trusted-host = pypi.python.org

pip install linkchecker 되어 있습니다.linkchecker가 가가 the the the the the the the the the the 를 만든 후 불평하지 않고pip.conffilename을 클릭합니다.

풀 수 .CERTIFICATE_VERIFY_FAILED:

  • HTTPS 를 HTTPS 「HTTP」등).--index-url=http://pypi.python.org/simple/를 참조해 주세요.
  • --cert <trusted.pem> ★★★★★★★★★★★★★★★★★」CA_BUNDLECA에 의한 것입니다.

    예를 들어 웹 브라우저에서 실패한 URL로 이동하여 루트 인증서를 시스템으로 가져올 수 있습니다.

  • 실행합니다.python -c "import ssl; print(ssl.get_default_verify_paths())"현재의 것을 확인합니다(존재하는 경우는 제외).

  • 에는 한 이 있습니다(OpenSSL 2).SSL_CERT_DIR,SSL_CERT_FILE를 사용하여PEP-476 다른 증명서 데이터베이스를 지정할 수 있습니다.
  • --trusted-host <hostname>호스트를 신뢰할 수 있는 것으로 표시합니다.
  • 에서는 Python을 합니다.verify=False★★★★★★에requests.get(「SSL 증명서 검증」을 참조).
  • --proxy <proxy>증명서 확인을 회피합니다.

자세한 내용은 다음 사이트에서 확인: 소켓 개체에 대한 TLS/SSL 래퍼 - 인증서 확인 중.

시간과 날짜를 올바르게 설정합니다!

저는 라즈베리파이에 날짜와 시간이 잘못 설정되어 있는 것이 판명되었습니다.그 결과 https://files.pythonhosted.org/ 서버를 사용하여 모든 SSL 및 HTTPS 연결이 실패했습니다.

다음과 같이 업데이트합니다.

sudo date -s "Wed Thu  23 11:12:00 GMT+1 2018"
sudo dpkg-reconfigure tzdata

또는 직접 사용할 수도 있습니다.구글 시대:

참조: https://superuser.com/a/635024/935136

sudo date -s "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')"
sudo dpkg-reconfigure tzdata

최근 SSL 트래픽을 필터링할 수 있도록 자체 인증 기관을 사용하는 회사의 웹 콘텐츠 필터 때문에 이 문제가 발생했습니다.제 경우 PIP는 시스템의 CA 증명서를 사용하지 않는 것 같습니다.그 때문에, 말씀하신 에러가 발생하고 있습니다.PIP를 버전 1.2.1로 다운그레이드하면 나중에 자체적인 문제가 발생했기 때문에 Python 3.4와 함께 제공된 원래 버전으로 되돌렸습니다.

의 해결 방법은 은 매우 간단하다.사용방법easy_install증명서를 체크하지 않거나(이전 PIP 버전 등), 시스템 증명서를 사용하는 것을 알고 있습니다.이치노【PIP】【easy_install】【easy_install】【PIP】.

그래도 문제가 없는 네트워크나 컴퓨터에 액세스할 수 있다면 언제든지 개인 PyPI 서버를 설정할 수 있습니다. 미러 없이 로컬 자체 PyPI 저장소 인덱스를 만드는 방법?

easy_install마지막 배수구 작업으로서요

TLDR:

pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt -vvv

pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <packageName> -vvv

질문에 대한 2020년 에는 아무 .
모두 과거의 다른 순간에 주어졌습니다.저는 앞으로도 이 답변이 항상 유효하도록 노력하겠습니다.문제는 pip이 패키지를 설치하는 동안 패키지가 저장된 호스트 URL에 연결을 시도하고 패키지를 다운로드하는 동안 URL을 신뢰하지 않는다는 것입니다.

이 문제를 해결하려면 다음 두 가지 방법이 있습니다.간편하고 안전하지 않음: 1. 패키지를 다운로드하기 위해 pip에 의해 히트된 URL을 확인합니다.

pip install <packageName> -vvv

출력을 주의 깊게 체크하면, pypi.org과 같은 URL로 전송되거나 pypi일 수 있습니다.python.org 를 참조해 주세요.

다음 명령어에 trusted host 옵션을 추가합니다.

pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org <packageName> -vvv

또는 요건 파일을 사용하는 경우:

pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt -vvv

안전한 방법:

각 URL에 접속하여 퍼블릭 증명서를 다운로드하고(구글 다운로드 방법만), 체인을 생성하여 .pem 파일로 저장한 후 다음 명령을 실행합니다.

pip --cert YourPemFile.pem install <packageName>

https 대신 http를 사용하여 SSL 오류를 우회할 수 있습니다.물론 이것이 보안 측면에서는 최적인 것은 아니지만, 급할 경우 다음과 같은 이점을 얻을 수 있습니다.

pip install --index-url=http://pypi.python.org/simple/ linkchecker

easy_install을 사용하여 pip 1.2.1을 설치하고 패키지를 설치할 수 있는 최신 버전의 pip(당시 6.0.7)로 업그레이드했습니다.

easy_install pip==1.2.1
pip install --upgrade pip

사용할 답변

pip install --trusted-host pypi.python.org <package>

나 캐시가 pipWindows 7 windows windows Windows 7 の windows windows 。pip 9.0.1 했다.

pip install \
  --trusted-host pypi.python.org \
  --trusted-host pypi.org \
  --trusted-host files.pythonhosted.org \
  <package>

상세 플래그를 사용하여 이러한 항목을 찾을 수 있습니다.

4가지 옵션이 있습니다.

인증서를 매개 변수로 사용

$ pip install --cert /path/to/mycertificate.crt linkchecker

pip.conf

다음 파일 만들기:

$HOME/.pip/pip.conf (Linux)

%HOME%\pip\pip.ini (Windows)

다음 행을 추가합니다.

[global]
cert = /path/to/mycertificate.crt

증명서 무시 및 HTTP 사용

$ pip install --trusted-host pypi.python.org linkchecker

증명서 무시 및 pip.conf에서의 HTTP 사용

다음 파일 만들기:

$HOME/.pip/pip.conf (Linux)

%HOME%\pip\pip.ini (Windows)

다음 행을 추가합니다.

[global]
trusted-host = pypi.python.org

원천

일단은...

    pip install --trusted-host pypi.python.org <package name>

효과가 없었습니다.Certificate_VERIFY_FAILED 오류가 계속 발생하였습니다.그러나 오류 메시지에서 그들이 'pypi.org' 사이트를 참조하고 있음을 알 수 있었습니다.그래서 저는 이것을 pypi 대신 신뢰할 수 있는 호스트 이름으로 사용했습니다.python.org 를 참조해 주세요.그 결과 로드는 CERTIFICATE_VERIFY_FAILED로 실패했지만 나중에 실패했습니다.장애가 발생한 웹 사이트에 대한 참조를 찾아 신뢰할 수 있는 호스트로 포함시켰습니다.결국 나에게 효과가 있었던 것은,

    pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package name>

를 안고 있었습니다.pip install ftputilActivePython 2.7.8, ActivePython 3.4.1, "Python 3.4.2" 64, Windows 7 Enterprise.OP와 동일한 오류로 인해 모든 시도가 실패했습니다.

3..2.1로 .easy_install pip==1.2.1(https://stackoverflow.com/a/16370731/234235) 를 참조해 주세요.ActivePython 2.7.8에서도 같은 수정이 실행되었습니다.

2013년 3월에 보고된 이 버그는 아직 해결되지 않았다.https://github.com/pypa/pip/issues/829

건너뛰지 마세요!Linux용 세이프 솔루션 발견

「」를 추가하는 .pypi.org할 수 있는 (「」를 참조)--trusted-host는 안전하지 않습니다.기본적으로 https를 건너뛰고 문제를 해결하지 않습니다.
은 이 하고, '증명서'를 삭제해 주세요.--trusted-host 삭제:

sudo yum -y update ca-certificates
export PIP_CERT=/etc/ssl/certs/ca-bundle.crt 

안전상의 문제!

법인 프록시를 사용하려고 했지만 실패했습니다.

하고 Python 3.6.

pip.conf파일이 누락되었습니다.

이 문제를 해결하는 순서는 다음과 같습니다.

  1. 다음 중 하나:-pip --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org install certifi

  2. 작성하다pip.conf다음과 같이 합니다.

     $ cd ~/.config 
     $ mkdir pip
     $ cd pip
     $ nano pip.conf

된 로로음음음음음음음음음음 the the the the to to 를 추가합니다..conf이치노

[global]
trusted-host = pypi.python.org files.pythonhosted.org pypi.org pypi.io

다 끝났고 작동하기 시작했어.

--verbose 옵션을 사용해 파일에 액세스 할 때까지, 이 페이지의 아무것도 기능하지 않았습니다.pypi가 아닌 pythonhosted.org을 참조하십시오.python.org:

pip install --trusted-host files.pythonhosted.org <package_name>

--verbose 옵션을 사용하여 실제로 장애가 발생한 URL을 확인합니다.

이것이 관련이 있는지는 잘 모르겠습니다만, 이 파일들을 Anaconda3/Library/bin에서 Anaconda3/DLLs로 복사함으로써 해결된 비슷한 문제가 있었습니다.

libcrypto-1_1-x64.120

libssl-1_1-x64.disc

간단한 솔루션:

easy_install <package name>

예:

easy_install pandas

대체 솔루션:

pip install <package_name> --trusted-host pypi.org --trusted-host files.pythonhosted.org

예제:

pip install pandas --trusted-host pypi.org --trusted-host files.pythonhosted.org

최근 Python 3.6에서 Visual Studio 2015와 같은 문제에 직면했습니다.이틀을 보낸 후, 저는 해결책을 얻었고, 그것은 저에게 잘 작동했습니다.

pip을 사용하여 numpy를 설치하려고 하거나 비주얼 스튜디오에서 collecting numpy Could not fetch URL https://pypi.python.org/simple/numpy/:SSL 인증서를 확인하는 동안 문제가 발생했습니다. [SSL: CERTIFICATE_VERIFY_FAILED] 인증서 검증 실패(_ssl.c:748) 건너뛰기 요구 사항 numpy(버전:)를 충족하는 버전을 찾을 수 없습니다. numpy에 일치하는 배포를 찾을 수 없습니다.

해상도:

Windows OS의 경우

  1. open -> %appdata% 폴더가 없는 경우 "pip" 폴더를 만듭니다.
  2. pip 폴더에 "pip.ini" 파일을 만듭니다.
  3. 편집 및
    ★★★★★★★★★★★★★★★★★★」
    =syslog-host = pypi.python.org에 접속해 주세요.pip/visual studio

(Windows의 경우) 한 가지 해결 방법은pip.ini %AppData%\pip\폴더(폴더가 존재하지 않는 경우 폴더 생성) 및 다음 세부 정보를 삽입합니다.

[global]
cert = C:/certs/python_root.pem
proxy = http://my_user@my_company.com:my_password@proxy_ip:proxy_port

...그 후, 인스톨 순서를 실행할 수 있습니다.

pip3 install PyQt5

다른 옵션은 프록시 및 인증서 인수를 사용하여 패키지를 설치하는 것입니다.

$ pip3 install --proxy http://my_user@my_company.com:my_password@proxy_ip:proxy_port \
   --cert C:/certs/python_root.pem PyQt5

*.cer한 " " " 에 파일 저장*.pem다음 명령을 포맷합니다.

$ openssl x509 -inform der -in python_root.cer -out python_root.pem

이게 누군가에게 도움이 되길 바라!

다른 언급은 없는 것 같아서 그냥 여기에 두겠습니다.

다음과 같이 글로벌하게 trusted-host를 pip로 설정할 수 있습니다.

py -m pip config set global.trusted-host pypi.org

그리고 가장 중요한 것은 pip.ini/inf.conf가 저장되어 있는 올바른 위치가 반환된다는 것입니다.

Python 3.10의 경우

콘텐츠로 파일 추가/업데이트

[global]
trusted-host = pypi.python.org
           pypi.org
           files.pythonhosted.org

파일 위치

  1. MacOS - $HOME/Library/어플리케이션 지원/pip/pip.conf

  2. UNIX - $HOME/.config/pip/pip.conf

  3. Windows - %APPDATA%\pip\pipini

이 문제를 해결하려면 pip을 삭제하고 이전 버전의 pip을 설치합니다.https://pypi.python.org/pypi/pip/1.2.1

언급URL : https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi

반응형