버젼 0.4.2를 pip을 통해 whl 파일로 설치시 Python3에서 설치 오류 #50

Closed
e9t opened this Issue Feb 26, 2015 · 1 comment

Projects

None yet

1 participant

@e9t
Member
e9t commented Feb 26, 2015

원래 Python3에서는 JPype1이 아니라 JPype1-py3 패키지를 설치해야하는데, 설치 로그를 보니 전자로 설치되고 있습니다.

epark@dada:~$ pip3 install konlpy --upgrade
Downloading/unpacking konlpy from https://pypi.python.org/packages/2.7/k/konlpy/konlpy-0.4.2-py2.py3-none-any.whl#md5=2b9b2c74d333f1266ee24e39074239d9
  Downloading konlpy-0.4.2-py2.py3-none-any.whl (22.4MB): 22.4MB downloaded
Downloading/unpacking JPype1>=0.5.7 (from konlpy)
  Downloading JPype1-0.5.7.tar.gz (138kB): 138kB downloaded
  Running setup.py (path:/tmp/pip_build_root/JPype1/setup.py) egg_info for package JPype1
    Traceback (most recent call last):
      File "", line 17, in 
      File "/tmp/pip_build_root/JPype1/setup.py", line 9, in 
        import exceptions
    ImportError: No module named 'exceptions'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "", line 17, in 

  File "/tmp/pip_build_root/JPype1/setup.py", line 9, in 

    import exceptions

ImportError: No module named 'exceptions'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/JPype1
Storing debug log for failure in /home/epark/.pip/pip.log

지금은 setup.py 내의 requirements()를 통해 파이썬 2, 3에 각각 requirements.txt, requirements-py3.txt 를 전달해주고 있는데, 일괄적으로 requirements.txt가 전달되고 있는듯합니다.

@e9t e9t added the bug label Feb 26, 2015
@e9t e9t changed the title from 버젼 0.4.2를 whl 파일로 설치시 Python3에서 설치 오류 to 버젼 0.4.2를 pip을 통해 whl 파일로 설치시 Python3에서 설치 오류 Feb 26, 2015
@e9t e9t closed this Feb 27, 2015
@e9t
Member
e9t commented Feb 27, 2015

http://wheel.readthedocs.org/en/latest/ 에 conditional requirements 설정하는 방법이 나오네요.
기존 방법대로 하면 whl 파일을 생성하던 파이썬 인터프리터 버젼에 따라 requirements가 정해져서 (이 경우엔 Python 2) 문제가 생긴듯 합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment