2022-11-17 12:21:57

파이썬 패키지를 설치할 때는 보통 아래와 같은 명령을 터미널에 입력함으로 설치합니다.

 

pip install 패키지명

 

문제 발생

그런데 다음과 같은 경고 및 에러 메시지가 뜨는 경우가 있습니다.

 

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001DC10B3FB20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyinstaller/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001DC10B3FE50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyinstaller/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001DC10B3FF10>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyinstaller/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001DC10B842E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyinstaller/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001DC10B84490>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/pyinstaller/
ERROR: Could not find a version that satisfies the requirement pyinstaller (from versions: none)
ERROR: No matching distribution found for pyinstaller

 

 

해결 방법

이런 에러가 떴다면, 인터넷 연결 상태를 확인해보세요. 인터넷이 연결 안 되어 있을 가능성이 큽니다. 파이썬 패키지 저장소에서 패키지를 다운로드 받으려면 당연히 인터넷이 연결되어 있어야 합니다.