kakao / khaiii

Kakao Hangul Analyzer III
Apache License 2.0
1.41k stars 284 forks source link

python 패키지 설치시 khaiii-0.2.zip not found #47

Closed codertimo closed 5 years ago

codertimo commented 5 years ago

안녕하세요, 우선 이렇게 좋은 형태소 분석기를 만들어주심에 감사를 드립니다. 설치를 하는 과정에서 아래와 같이 khaiii-0.2.zip를 python-package 디렉토리에서 찾지 못하는 현상이 발견되었습니다. 혹시 해당 과정에 대해서 리포팅된 버그나 짐작이 가시는 부분이 있으시다면 안내 부탁드립니다.

Ubuntu Server에서 설치시에도 동일한 에러가 발생하여, Mac에서도 재시도 하였으나 동일한 애러가 발생했습니다.

(ml-env)  ✘ codertimo@codertimo-macpro  ~/dev/khaiii/build/package_python   master  pip install .
Processing /Users/codertimo/dev/khaiii/build/package_python
Building wheels for collected packages: khaiii
  Running setup.py bdist_wheel for khaiii ... error
  Complete output from command /Users/codertimo/env/ml-env/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-req-build-z06rgzdp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-wheel-igusk8av --python-tag cp37:
  running bdist_wheel
  running build
  error: [Errno 2] No such file or directory: 'khaiii-0.2.zip'

  ----------------------------------------
  Failed building wheel for khaiii
  Running setup.py clean for khaiii
Failed to build khaiii
Installing collected packages: khaiii
  Running setup.py install for khaiii ... error
    Complete output from command /Users/codertimo/env/ml-env/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-req-build-z06rgzdp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-record-uud1pp16/install-record.txt --single-version-externally-managed --compile --install-headers /Users/codertimo/env/ml-env/bin/../include/site/python3.7/khaiii:
    running install
    running build
    error: [Errno 2] No such file or directory: 'khaiii-0.2.zip'

    ----------------------------------------
Command "/Users/codertimo/env/ml-env/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-req-build-z06rgzdp/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-record-uud1pp16/install-record.txt --single-version-externally-managed --compile --install-headers /Users/codertimo/env/ml-env/bin/../include/site/python3.7/khaiii" failed with error code 1 in /private/var/folders/bk/dnvhhrxs5hq_tzy2bm_ppk6h0000gn/T/pip-req-build-z06rgzdp/
You are using pip version 18.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ohahyoung commented 3 years ago

안녕하세요, 혹시 이 문제 어떻게 해결하셨는지 공유해주실 수 있을까요? 감사합니다!

krikit commented 3 years ago

@ohahyoung

build/package_python 디렉터리에서 pip install . 명령을 하기 전에 build 디렉터리에서 make pakcage_python 명령을 빠뜨리신 것이 아닌가 싶습니다.

빌드 및 설치 문서에서 Python 바인딩 부분을 한번 더 확인하시기 바랍니다.