Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
AWS Glue에서 발생하는 "ImportError: No module named"를 해결하려면 어떻게 해야 합니까?
1분 분량
0
AWS Glue에서 발생하는 "ImportError: No module named" 오류를 해결하려고 합니다.
해결 방법
필요한 Python 모듈 또는 패키지를 찾을 수 없는 AWS Glue Python 쉘 작업을 실행하면 다음과 유사한 오류가 표시됩니다. "ImportError: No module named pyarrow.compat"
이 문제를 해결하려면 누락된 라이브러리를 .egg 또는 .whl 파일로 제공하십시오. 자세한 지침은 Egg 또는 Whl 파일 사용을 참조하십시오.
참고: AWS Glue Python 쉘 작업은 .egg 및 .whl 파일을 지원합니다. Python은 두 파일 형식 중 하나에서 직접 가져옵니다.
중요: Python 쉘 작업은 Python 3을 지원합니다. 자세한 내용은 AWS Glue 버전 지원 정책을 참조하십시오.