hyunwoongko / pecab

Pecab: Pure python Korean morpheme analyzer based on Mecab
Apache License 2.0
156 stars 13 forks source link

Installation 문제 (pyarrow 를 설치하지 않는 듯합니다) #1

Closed combacsa closed 1 year ago

combacsa commented 1 year ago

Python 3.7.9 에서 pip install pecab 을 해 봤는데, dependency 를 설치해주지는 않는 듯한 느낌입니다.

(konlpy) ➜  ~ pip install pecab
Collecting pecab
  Downloading pecab-1.0.0.tar.gz (26.4 MB)
     |████████████████████████████████| 26.4 MB 9.2 MB/s
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pecab
  Building wheel for pecab (setup.py) ... done
  Created wheel for pecab: filename=pecab-1.0.0-py3-none-any.whl size=26646317 sha256=4dd93922c85f30fadfc978cdcfee6c3b02869e6266305dcb4e1d4abd448e3020
  Stored in directory: /Users/khbyun/Library/Caches/pip/wheels/9d/ac/1f/e81d3e89270f44b2b4e8eb0193cff77fab824d5c74c452ed87
Successfully built pecab
Installing collected packages: pecab
Successfully installed pecab-1.0.0
WARNING: You are using pip version 21.3.1; however, version 22.3.1 is available.
You should consider upgrading via the '/Users/khbyun/work/venv/konlpy/bin/python -m pip install --upgrade pip' command.
(konlpy) ➜  ~ ipython
Python 3.7.9 (default, Feb 15 2021, 12:49:40)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.30.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pecab
tagger = p---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-873e3bfd19f2> in <module>
----> 1 import pecab

~/work/venv/konlpy/lib/python3.7/site-packages/pecab/__init__.py in <module>
----> 1 from pecab._pecab import PeCab
      2
      3 __ALL__ = [PeCab]
      4 __version__ = "1.0.0"
      5 __author__ = "Hyunwoong Ko"

~/work/venv/konlpy/lib/python3.7/site-packages/pecab/_pecab.py in <module>
      1 from typing import Optional, List
      2
----> 3 from pecab._postprocessor import Postprocessor
      4 from pecab._tokenizer import Tokenizer
      5 from pecab._utils._consts import Type, Tokenization

~/work/venv/konlpy/lib/python3.7/site-packages/pecab/_postprocessor.py in <module>
----> 1 from pecab._tokenizer import Type
      2 from pecab._tokens import TokenAttributes
      3 from pecab._utils._consts import Pos
      4
      5

~/work/venv/konlpy/lib/python3.7/site-packages/pecab/_tokenizer.py in <module>
      6
      7 import numpy as np
----> 8 import pyarrow as pa
      9 import unicodedata
     10

ModuleNotFoundError: No module named 'pyarrow'
combacsa commented 1 year ago

requirements.txt 에 있는 다른 dependency 들도 같은 문제가 있어서, 일단 workaround 로는 pip install -r requirements.txt 하면 되긴 합니다.

hyunwoongko commented 1 year ago

아하 바로 업데이트 해야겠네요.. 감사합니다!

hyunwoongko commented 1 year ago

1.0.1에서 해결되었습니다. 감사합니다~