pip로 패키지를 설치할 수 없습니다.

2874 단어 파이썬pipWindows10

환경


  • windows10
  • Python3.7.3
  • pip19.0.3

  • 문제



    파이썬 초보자이면서 보는 모습으로 AWS를 조작하고 싶어 boto3을 떨어뜨리려고 하면
    pip install boto3 할 수 없다.
    pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
    Collecting boto3
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
      Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
      Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
      Could not fetch URL https://pypi.org/simple/boto3/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/boto3/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
      Could not find a version that satisfies the requirement boto3 (from versions: )
    No matching distribution found for boto3
    
    

    솔루션 후보



    Typo?



    그것은 아니, 왜냐하면 Pypi 명령을 복사했기 때문에.


    인증서 오류?



    에러를 구그하면 아무래도 증명서의 관계에 의해 신용하고 있지 않기 때문에와 같은 기사가 나왔기 때문에 실행했다.
    htps : // 이 m/아가죠/있어 ms/73d6f14855다 703972에0

    하지만 작동하지 않습니다.

    해결책



    공식 사이트 의 pip의 페이지를 보면
    複数のバージョンの Python がインストールされている環境では、どの Python の実行環境にパッケージをインストールするか、指定する必要があります。
    그리고 있다. 그러고 보면 다른 시스템의 관계로 2.x를 넣고 있었던 것을 기억해 버전 지정을 해 실행
    py -3 -m pip install boto3
    

    무사한 해결

    좋은 웹페이지 즐겨찾기