상세 컨텐츠

본문 제목

Window 11(윈도우 11) 의 This error might have occurred since this system does not have Windows Long Path support enabled 해결 방법

기타/기타

by Victorywskim 2024. 1. 15. 15:17

본문

반응형

 

윈도우11에서 python 을 사용하다보면

 

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\dntmd\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python311\\site-packages\\tensorflow\\include\\external\\com_github_grpc_grpc\\src\\core\\ext\\filters\\client_channel\\lb_policy\\grpclb\\client_load_reporting_filter.h'
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths

 

과 같은 문제가 발생할때가 있습니다.

 

이는 기본적으로 Windows 운영 체제에 파일 경로의 길이에 제한이 있기 때문입니다. 기본적으로 경로의 길이는 260자를 초과할 수 없습니다. 이 제한을 초과하는 긴 파일 경로를 사용하려고 하면 오류가 발생할 수 있습니다.

해당 오류 메시지는 Windows Long Path 지원이 활성화되어 있지 않아서 오류가 발생했을 가능성이 있음을 알려줍니다. Windows Long Path 지원을 활성화하면 260자 이상의 긴 파일 경로를 사용할 수 있게 됩니다.

 

해결하는 방법은 여러 방법이 있지만 저는 가장 쉬운 방법을 통해 해결해보도록 하겠습니다.

 

우선 메뉴 검색기를 통해 레지스트리 편집기를 열어줍니다.

 

그 다음 "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" 경로로 이동합니다.

 

 

그리고 "LongPathsEnabled" 를 더블 클릭하고 데이터를 0 -> 1 로 변경해줍니다.

 

확인을 누르시고 다시 pip 를 사용해서 설치를 진행하시면 문제 없이 설치가 진행되는 것을 확인 하실 수 있습니다.

 

감사합니다.

 

728x90
반응형

관련글 더보기