Open ohchangmin opened 5 years ago
저도 동일한 에러가 발생하는데 해결하셨나요?
안녕하세요! 답변이 많이 늦어 죄송합니다. 혹시 visual c++ redistributable package를 설치하셨을까요?
visual c++ redistributable package를 설치를 했는데도 불구하고 에러가 난다면 어찌 해야 할까요?
저도 같은 오류가 발생했는데 파이썬 버전을 3.8 아래로 사용(3.7.9) 하니까 설치가 됩니다.
ERROR: Command errored out with exit status 1: 'c:\users\power\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\power\AppData\Local\Temp\pip-install-6tifaver\eunjeon\setup.py'"'"'; file='"'"'C:\Users\power\AppData\Local\Temp\pip-install-6tifaver\eunjeon\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\power\AppData\Local\Temp\pip-record-xcasdpo1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\power\appdata\local\programs\python\python37-32\Include\eunjeon' Check the logs for full command output.`
현재 python 32bit 3.7.4 사용중입니다.. 설치시 이런 문제가 발생하는데 어떻게 해결 할 수 있을까요?
C:\python_test\mecab_test> pip install eunjeon
가동했는데 mecab은 설치된 상태입니다.
PS C:\python_test\mecab_test> pip install eunjeon Collecting eunjeon Using cached https://files.pythonhosted.org/packages/68/90/3232725f974abf6d38f1e2cfd7a6b958337133b3fdc5b3e8994e03d7c2d3/eunjeon-0.4.0.tar.gz Installing collected packages: eunjeon Running setup.py install for eunjeon ... error ERROR: Complete output from command 'c:\python37\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-w5zs53ch\eunjeon\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\ADMINI~1\AppData\Local\Temp\pip-record-_m05v6c9\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\eunjeon copying eunjeon\constants.py -> build\lib.win32-3.7\eunjeon copying eunjeon\mecab.py -> build\lib.win32-3.7\eunjeon copying eunjeon_mecab.py -> build\lib.win32-3.7\eunjeon copying eunjeon__init.py -> build\lib.win32-3.7\eunjeon creating build\lib.win32-3.7\eunjeon\data copying eunjeon\data\char.bin -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\matrix.bin -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\model.bin -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\char.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\feature.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\left-id.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\pos-id.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\rewrite.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\right-id.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\unk.def -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\sys.dic -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\unk.dic -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\dicrc -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecabrc -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\libmecab.dll -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecab-cost-train.exe -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecab-dict-gen.exe -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecab-dict-index.exe -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecab-system-eval.exe -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecab-test-gen.exe -> build\lib.win32-3.7\eunjeon\data copying eunjeon\data\mecab.exe -> build\lib.win32-3.7\eunjeon\data creating build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\libmecab.lib -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab-cost-train.lib -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab-dict-gen.lib -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab-dict-index.lib -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab-system-eval.lib -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab-test-gen.lib -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab.h -> build\lib.win32-3.7\eunjeon\data\sdk copying eunjeon\data\sdk\mecab.lib -> build\lib.win32-3.7\eunjeon\data\sdk running build_ext building '_MeCab' extension creating build\temp.win32-3.7 creating build\temp.win32-3.7\Release creating build\temp.win32-3.7\Release\eunjeon C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Ieunjeon/data/sdk -Ic:\python37\include -Ic:\python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpeunjeon/MeCab_wrap.cxx /Fobuild\temp.win32-3.7\Release\eunjeon/MeCab_wrap.obj MeCab_wrap.cxx C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /nodefaultlib:libucrt.lib ucrt.lib /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:eunjeon/data/sdk /LIBPATH:c:\python37\libs /LIBPATH:c:\python37\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86" libmecab.lib /EXPORT:PyInitMeCab build\temp.win32-3.7\Release\eunjeon/MeCab_wrap.obj /OUT:build\lib.win32-3.7_MeCab.cp37-win32.pyd /IMPLIB:build\temp.win32-3.7\Release\eunjeon_MeCab.cp37-win32.lib build\temp.win32-3.7\Release\eunjeon_MeCab.cp37-win32.lib 라이브러리 및 build\temp.win32-3.7\Release\eunjeon_MeCab.cp37-win32.exp 개체를 생성하고 있습니다. MeCab_wrap.obj : error LNK2001: "declspec(dllimport) class MeCab::Tagger __cdecl MeCab::createTagger(char const )" (imp_?createTagger@MeCab@@YAPAVTagger@1@PBD@Z) 외부 기호를 확인할 수 없습니다. MeCab_wrap.obj : error LNK2001: "declspec(dllimport) class MeCab::Lattice cdecl MeCab::createLattice(void)" (imp_?createLattice@MeCab@@YAPAVLattice@1@XZ) 외부 기호를 확인할 수 없습니다. MeCab_wrap.obj : error LNK2001: "__declspec(dllimport) class MeCab::Model cdecl MeCab::createModel(char const *)" (imp_?createModel@MeCab@@YAPAVModel@1@PBD@Z) 외부 기호를 확인할 수 없습니다. MeCab_wrap.obj : error LNK2001: "declspec(dllimport) char const * cdecl MeCab::getLastError(void)" (imp_?getLastError@MeCab@@YAPBDXZ) 외부 기호를 확인할 수 없습니다. MeCab_wrap.obj : error LNK2001: "public: static char const * cdecl MeCab::Tagger::version(void)" (?version@Tagger@MeCab@@SAPBDXZ) 외부 기호를 확인할 수 없습니다. MeCab_wrap.obj : error LNK2001: "public: static bool cdecl MeCab::Tagger::parse(class MeCab::Model const &,class MeCab::Lattice )" (?parse@Tagger@MeCab@@SA_NABVModel@2@PAVLattice@2@@Z) 외부 기호를 확인할 수 없습 니다. MeCab_wrap.obj : error LNK2001: "public: static char const __cdecl MeCab::Model::version(void)" (?version@Model@MeCab@@SAPBDXZ) 외부 기호를 확인할 수 없습니다. build\lib.win32-3.7_MeCab.cp37-win32.pyd : fatal error LNK1120: 7개의 확인할 수 없는 외부 참조입니다. error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86\link.exe' failed with exit status 1120
ERROR: Command "'c:\python37\python.exe' -u -c 'import setuptools, tokenize;file='"'"'C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-w5zs53ch\eunjeon\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\ADMINI~1\AppData\Local\Temp\pip-record-_m05v6c9\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-w5zs53ch\eunjeon\
밑에 처럼 장애가 생깁니다.
64bit 입니다.