퍼지 일치를 결정하기 위해 비교를 사용하는 스크립트에서 작업 중이므로 Levenshtein 기능을 사용하고 있습니다.모듈 가져 오기, Levenshtein
불행히도 터미널 창에서 easy_install python-Levenshtein을 실행할 때 Python은 가져 오기를 실행할 때 여전히 Levenshtein을 인식하지 못합니다. 내가 터미널 창에서 볼 때, 나는 (여기서 잘못이야 난이 생각) 오류 코드이 목록을 다음 Levenshtein가 작동하지 않는 설치 이유
Processing python-Levenshtein-0.10.2.tar.gz
Running python-Levenshtein-0.10.2/setup.py -q bdist_egg --dist-dir /var/folders/0H/0HiEtyHBGV4TWfq84ctWC++++TM/-Tmp-/easy_install-tbdn73/python-Levenshtein-0.10.2/egg-dist-tmp-L7Jws0 warning: no files found matching '*' under directory 'docs'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
사람이 알고 있나요? 나는 gcc-4.0 오류 (GCC 설치 프로그램을 실행했지만 여전히 작동하지 않음)와 관련이 있거나 어떤 제안이 있다고 생각합니까?
어떤 OS입니까? 우분투에서'apt-get install python-levenshtein'은 apt에서 설치할 것입니다. –
OS X 10.6 Snow Leopard – user1389884
수동으로 패키지를 다운로드하고 컴파일하려고 시도 했습니까? –