에러내용
Collecting konlpy
Using cached https://files.pythonhosted.org/packages/e5/3d/4e983cd98d87b50b2ab0387d73fa946f745aa8164e8888a714d5129f9765/konlpy-0.5.1-py2.py3-none-any.whl
Collecting JPype1>=0.5.7 (from konlpy)
Using cached https://files.pythonhosted.org/packages/c4/4b/60a3e63d51714d4d7ef1b1efdf84315d118a0a80a5b085bb52a7e2428cdc/JPype1-0.6.3.tar.gz
Building wheels for collected packages: JPype1
Building wheel for JPype1 (setup.py) ... error
ERROR: Complete output from command 'c:\python\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\last2018\\AppData\\Local\\Temp\\pip-install-4n_atv3n\\JPype1\\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 'C:\Users\last2018\AppData\Local\Temp\pip-wheel-8xys7iaw' --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\jpype
copying jpype\imports.py -> build\lib.win32-3.7\jpype
copying jpype\JClassUtil.py -> build\lib.win32-3.7\jpype
copying jpype\nio.py -> build\lib.win32-3.7\jpype
copying jpype\reflect.py -> build\lib.win32-3.7\jpype
copying jpype\_classpath.py -> build\lib.win32-3.7\jpype
copying jpype\_core.py -> build\lib.win32-3.7\jpype
copying jpype\_cygwin.py -> build\lib.win32-3.7\jpype
copying jpype\_darwin.py -> build\lib.win32-3.7\jpype
copying jpype\_gui.py -> build\lib.win32-3.7\jpype
copying jpype\_jarray.py -> build\lib.win32-3.7\jpype
copying jpype\_jboxed.py -> build\lib.win32-3.7\jpype
copying jpype\_jclass.py -> build\lib.win32-3.7\jpype
copying jpype\_jcollection.py -> build\lib.win32-3.7\jpype
copying jpype\_jexception.py -> build\lib.win32-3.7\jpype
copying jpype\_jio.py -> build\lib.win32-3.7\jpype
copying jpype\_jobject.py -> build\lib.win32-3.7\jpype
copying jpype\_jpackage.py -> build\lib.win32-3.7\jpype
copying jpype\_jproxy.py -> build\lib.win32-3.7\jpype
copying jpype\_jvmfinder.py -> build\lib.win32-3.7\jpype
copying jpype\_jwrapper.py -> build\lib.win32-3.7\jpype
copying jpype\_linux.py -> build\lib.win32-3.7\jpype
copying jpype\_properties.py -> build\lib.win32-3.7\jpype
copying jpype\_pykeywords.py -> build\lib.win32-3.7\jpype
copying jpype\_refdaemon.py -> build\lib.win32-3.7\jpype
copying jpype\_windows.py -> build\lib.win32-3.7\jpype
copying jpype\__init__.py -> build\lib.win32-3.7\jpype
creating build\lib.win32-3.7\jpype\awt
copying jpype\awt\__init__.py -> build\lib.win32-3.7\jpype\awt
creating build\lib.win32-3.7\jpype\awt\event
copying jpype\awt\event\WindowAdapter.py -> build\lib.win32-3.7\jpype\awt\event
copying jpype\awt\event\__init__.py -> build\lib.win32-3.7\jpype\awt\event
creating build\lib.win32-3.7\jpypex
copying jpypex\__init__.py -> build\lib.win32-3.7\jpypex
creating build\lib.win32-3.7\jpypex\swing
copying jpypex\swing\AbstractAction.py -> build\lib.win32-3.7\jpypex\swing
copying jpypex\swing\pyutils.py -> build\lib.win32-3.7\jpypex\swing
copying jpypex\swing\__init__.py -> build\lib.win32-3.7\jpypex\swing
running build_ext
C:\Users\last2018\AppData\Local\Temp\pip-install-4n_atv3n\JPype1\setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building '_jpype' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\native
creating build\temp.win32-3.7\Release\native\common
creating build\temp.win32-3.7\Release\native\python
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DWIN32=1 -DHAVE_NUMPY=1 -Inative\common\include -Inative\python\include -Inative\jni_include -Ic:\python\lib\site-packages\numpy\core\include -Ic:\python\include -Ic:\python\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /EHsc /Tpnative\common\jp_array.cpp /Fobuild\temp.win32-3.7\Release\native\common\jp_array.obj /EHsc
error: command 'cl.exe' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for JPype1
Running setup.py clean for JPype1
Failed to build JPype1
Installing collected packages: JPype1, konlpy
Running setup.py install for JPype1 ... error
ERROR: Complete output from command 'c:\python\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\last2018\\AppData\\Local\\Temp\\pip-install-4n_atv3n\\JPype1\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\last2018\AppData\Local\Temp\pip-record-p4lf_ttz\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\jpype
copying jpype\imports.py -> build\lib.win32-3.7\jpype
copying jpype\JClassUtil.py -> build\lib.win32-3.7\jpype
copying jpype\nio.py -> build\lib.win32-3.7\jpype
copying jpype\reflect.py -> build\lib.win32-3.7\jpype
copying jpype\_classpath.py -> build\lib.win32-3.7\jpype
copying jpype\_core.py -> build\lib.win32-3.7\jpype
copying jpype\_cygwin.py -> build\lib.win32-3.7\jpype
copying jpype\_darwin.py -> build\lib.win32-3.7\jpype
copying jpype\_gui.py -> build\lib.win32-3.7\jpype
copying jpype\_jarray.py -> build\lib.win32-3.7\jpype
copying jpype\_jboxed.py -> build\lib.win32-3.7\jpype
copying jpype\_jclass.py -> build\lib.win32-3.7\jpype
copying jpype\_jcollection.py -> build\lib.win32-3.7\jpype
copying jpype\_jexception.py -> build\lib.win32-3.7\jpype
copying jpype\_jio.py -> build\lib.win32-3.7\jpype
copying jpype\_jobject.py -> build\lib.win32-3.7\jpype
copying jpype\_jpackage.py -> build\lib.win32-3.7\jpype
copying jpype\_jproxy.py -> build\lib.win32-3.7\jpype
copying jpype\_jvmfinder.py -> build\lib.win32-3.7\jpype
copying jpype\_jwrapper.py -> build\lib.win32-3.7\jpype
copying jpype\_linux.py -> build\lib.win32-3.7\jpype
copying jpype\_properties.py -> build\lib.win32-3.7\jpype
copying jpype\_pykeywords.py -> build\lib.win32-3.7\jpype
copying jpype\_refdaemon.py -> build\lib.win32-3.7\jpype
copying jpype\_windows.py -> build\lib.win32-3.7\jpype
copying jpype\__init__.py -> build\lib.win32-3.7\jpype
creating build\lib.win32-3.7\jpype\awt
copying jpype\awt\__init__.py -> build\lib.win32-3.7\jpype\awt
creating build\lib.win32-3.7\jpype\awt\event
copying jpype\awt\event\WindowAdapter.py -> build\lib.win32-3.7\jpype\awt\event
copying jpype\awt\event\__init__.py -> build\lib.win32-3.7\jpype\awt\event
creating build\lib.win32-3.7\jpypex
copying jpypex\__init__.py -> build\lib.win32-3.7\jpypex
creating build\lib.win32-3.7\jpypex\swing
copying jpypex\swing\AbstractAction.py -> build\lib.win32-3.7\jpypex\swing
copying jpypex\swing\pyutils.py -> build\lib.win32-3.7\jpypex\swing
copying jpypex\swing\__init__.py -> build\lib.win32-3.7\jpypex\swing
running build_ext
C:\Users\last2018\AppData\Local\Temp\pip-install-4n_atv3n\JPype1\setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building '_jpype' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\native
creating build\temp.win32-3.7\Release\native\common
creating build\temp.win32-3.7\Release\native\python
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DWIN32=1 -DHAVE_NUMPY=1 -Inative\common\include -Inative\python\include -Inative\jni_include -Ic:\python\lib\site-packages\numpy\core\include -Ic:\python\include -Ic:\python\include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /EHsc /Tpnative\common\jp_array.cpp /Fobuild\temp.win32-3.7\Release\native\common\jp_array.obj /EHsc
error: command 'cl.exe' failed: No such file or directory
----------------------------------------
ERROR: Command "'c:\python\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\last2018\\AppData\\Local\\Temp\\pip-install-4n_atv3n\\JPype1\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\last2018\AppData\Local\Temp\pip-record-p4lf_ttz\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\last2018\AppData\Local\Temp\pip-install-4n_atv3n\JPype1\
해결방안
knolpy 설치 오류 발생
numpy가 정상적으로 설치가 된 상태에서 konlpy를 설치했으나 오류발생
찾아보니 konlpy패키지를 설치하려면 JPype1을 설치해야한다고 함
JPype1을 설치하기 위해선 다음 과정을 거쳐야 한다. (Windows 기준)
1. Java 1.7+ 설치
2. JAVA_HOME 설정
3. JPype1 (>=0.57) 사이트에서 다운
현재 사용하는 파이썬 버전이 3.7 이라면 cp 3.7을 다운
그리고
32비트라면 win32.whl
64비트라면 amd64.whl
다운받으면 된다.
다운을 받은 whl파일은 사용할 py폴더로 이동시킨다.
본인의 파이썬 버전, bit를 확인하고자 한다면 VSC하단을 확인할 것!
4. 다운을 받았다면 하단 명령어 입력 (다운 받은 .whl파일을 설치하기 위해 pip 업글필요)
pip install --upgrade pip
pip install "다운받은.whl입력" (예시. pip install JPype1-0.6.3-cp37-cp37m-win32.whl)
5. 명령 프롬프트로 Konlpy설치
pip insatll konlpy
정상적으로 설치됨
'● 인공지능, 분석 > Err & Solution' 카테고리의 다른 글
힙에 충분한 공간을 할당할 수 없음 (0) | 2019.07.04 |
---|---|
[에러] jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (jvm.dll) found. / JAVA_HOME 지정 (0) | 2019.06.27 |
[에러] ImportError: numpy.core.multiarray failed to import (0) | 2019.06.27 |
virtualenv 실행 오류발생 (0) | 2019.06.24 |
env\Scripts\activate.ps1 오류발생 해결방법 (0) | 2019.06.24 |