본문 바로가기
Error_극복하기

에러 Could not install packages due to an OSError: [Errno 2] No such file or directory 해결

by ADELA_J 2023. 10. 27.

모듈을 설치하는데,,,, 이렇게 뜬 에러.....

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:

 

OS에러라고..? directory나 파일이 없다고..? 

잘은 몰라서 처음 시도해본 게 

 

cmd 관리자모드로 설치. 

하지만 똑같은 에러코드가 뜨고 되지 않았다 ㅠㅠ

그래서 그 밑에 힌트를 보았다.

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

 

윈도우의 Long Paht 서포트가 지원되지 않아서 활성화 해야한다는 얘기에 저 링크를 따라서 들어가서 

해보았다.

 

1. 레지스트리 편집기 열기

2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

경로를 따라가보기

그래서 들어가보면 ' LongPathsEnabled ' 파일이 있는 것을 확인할 수 있다. 

더블클릭!

 

3.  LongPathsEnabled의 값 데이터가 0으로 되어있는데, 

1로 수정해준다.

그리고 

확인 잘 눌러주고

컴퓨터를 재부팅한다면!

무사히 installed 되었다 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ

이렇게 오늘도 에러 하나 해결,,,🤣