• 카테고리

    질문 & 답변
  • 세부 분야

    데이터 분석

  • 해결 여부

    미해결

모듈이 설치가 안된다고 나오네요

20.06.26 23:03 작성 조회수 121

0

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-c115971908ad> in <module>
----> 1 from googletrans import Translator
      2 dave = Translator()
      3 word = dave.translate('나는 가방을 매고 학교에 갔습니다.', dest='en', src='ko')
      4 print (word.text)

ModuleNotFoundError: No module named 'googletrans'

밑에 껏다 키면 된다는 질문이 있길래 해봤는데 안되네요

답변 1

답변을 작성해보세요.

0

이 부분은 며칠전 동일한 이슈를 해결하신 분의 공유글을 참고하시면 좋을 것 같습니다.

해결되었습니다! 혹시 같은 문제를 겪는 분들이 계실까봐 해결에 참고한 사이트 달아놓습니다.

conda 명령어 입력시  "'conda'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다." 라는 메시지가 떴습니다.

이때 https://m.blog.naver.com/PostView.nhn?blogId=jonghong0316&logNo=221683053696&categoryNo=17&proxyReferer=https:%2F%2Fwww.google.com%2F

위 블로그 참고하여 해결했습니다.

다만 conda install -c conda-forge googletrans 명령어 입력시 아래와 같은 fail 문구가 나타났습니다.

Loading channels: failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team.

이 또한

https://blog.naver.com/jonghong0316/221682495465

위 블로그 내용 참고하여 해결했고,

결과적으로 googletrans 라이브러리 원활히 작동합니다.

감사합니다 선생님~