새소식

python

Python - No module named 'currency_converter' error

  • -

오류... 그만...

개요

aws CloudShell에서 python 파일을 실행하던 중 해당 오류를 만났다.

Traceback (most recent call last):
  File "/home/cloudshell-user/discord-cost-bot/cost_send.py", line 4, in <module>
    from currency_converter import CurrencyConverter
ModuleNotFoundError: No module named 'currency_converter'

해결방법

CurrencyConverter 라이브러리 설치

우선 CurrencyConverter 라이브러리를 설치하지 않았다면 설치를 진행하자.

pip install CurrencyConverter

하지만 정상적으로 라이브러리를 설치했음에도 똑같은 에러가 발생할 때가 있다. 그럴때는

pandas 라이브러리 설치

데이터 조작 및 분석을 위해 설치하는 라이브러리인 pandas가 설치되지 않아서 발생하는 오류일 수 있다.

pip install pandas

참고

stackoverflow pyspark-currency-converter

728x90
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.