PONI's 좋은 개발자

[Error] python module - pendulum install error 본문

error

[Error] python module - pendulum install error

PONI 2023. 11. 7. 08:59
반응형

에러

import pendulum

pendulm 패키지를  불러오는데 오류가 발생함.

 

 

 

pendulm  가 설치되지 않은거 같아 cmd 창에 명령문을 입력해 설치진행

pip install pendulm

 

에러내용

 

pendulum 패키지를 설치하는 도중 문제가 발생하여 wheel 파일을 생성하지 못함

ModuleNotFoundError: No module named 'distutils'

 

에러 내용에서 위 문장 확인

 

Python 3.10 이상에서는 distutils가 표준 라이브러리에 포함되지 않고, 별도로 설치해야 하는 경우가 있습니다.


해결방법

Distutils 설치

Python 환경에서 distutils 모듈이 누락되었을 수 있으므로, 해당 모듈을 설치해야 합니다. Python 3.10 버전부터 distutils는 setuptools 패키지와 함께 제공됩니다. 따라서 setuptools를 설치하면 됩니다.

 

pip install setuptools

 

 

setuptools 패키지를 설치한 후 pendulum 패키지를 설치하면 정상 설치되는 것을 확인할 수 있습니다.

반응형
Comments