Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mecab bash 스크립트 설치 오류 #429

Open
teddylee777 opened this issue Jul 21, 2023 · 1 comment
Open

Mecab bash 스크립트 설치 오류 #429

teddylee777 opened this issue Jul 21, 2023 · 1 comment

Comments

@teddylee777
Copy link

안녕하세요? Google Colab 및 Ubuntu 22.04 LTS 환경에서 Mecab 스크립트 설치시 오류가 발생하였습니다.

실행 스크립트 (공식 웹사이트 설치 가이드)

bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)

Error

/tmp /tmp/mecab-ko-dic-2.1.1-20180720
Cloning into 'mecab-python-0.996'...
Unpacking objects: 100% (17/17), 59.65 KiB | 3.14 MiB/s, done.
/tmp/mecab-ko-dic-2.1.1-20180720
Processing /tmp/mecab-python-0.996
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

확인 부탁 드립니다.
감사합니다.

@devsosin
Copy link

devsosin commented Aug 8, 2023

# Mecab 설치
!apt-get update
!apt-get install g++ openjdk-8-jdk
!pip3 install konlpy JPype1-py3
!bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)

# mecab-python의 버전 오류로 인해 아래 패키지를 설치하면 코랩에서 Mecab을 사용가능
!pip install mecab-python3

sh에서 적용중인 mecab-python 버전이 낮아서 pip에서 에러를 내고 있는 것 같아요
mecab-python3로 설치하고 나니까 Mecab 실행 되더라구요

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants