shibing624 / pycorrector

pycorrector is a toolkit for text error correction. 文本纠错,实现了Kenlm,T5,MacBERT,ChatGLM3,Qwen2.5等模型应用在纠错场景,开箱即用。
https://www.mulanai.com/product/corrector/
Apache License 2.0
5.61k stars 1.1k forks source link

安装失败 #38

Closed LeigeisSmart closed 5 years ago

LeigeisSmart commented 6 years ago

执行:python3 setup.py install running install Checking .pth file support in /usr/local/lib/python3.5/dist-packages/ /usr/bin/python3 -E -c pass TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files running bdist_egg running egg_info writing pycorrector.egg-info/PKG-INFO writing top-level names to pycorrector.egg-info/top_level.txt writing dependency_links to pycorrector.egg-info/dependency_links.txt writing requirements to pycorrector.egg-info/requires.txt reading manifest file 'pycorrector.egg-info/SOURCES.txt' writing manifest file 'pycorrector.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py 报错: error: can't copy 'pycorrector/utils/pycache': doesn't exist or not a regular file

setup.py 中 package_data={'pycorrector': ['.py','pycache/','utils/','utils/pycache/','zhtools/', 'LICENSE', 'README.','data/.txt', 'data/.pkl','data/kenlm/', 'data/test/*'],},

请问是什么原因?

shibing624 commented 6 years ago

请删除带pycache,请参考最新源码,并无pycache

liulu100 commented 5 years ago

~/pycorrector$ sudo python3 setup.py install running install Checking .pth file support in /usr/local/lib/python3.5/dist-packages/ /usr/bin/python3 -E -c pass TEST PASSED: /usr/local/lib/python3.5/dist-packages/ appears to support .pth files running bdist_egg running egg_info writing requirements to pycorrector.egg-info/requires.txt writing dependency_links to pycorrector.egg-info/dependency_links.txt writing pycorrector.egg-info/PKG-INFO writing top-level names to pycorrector.egg-info/top_level.txt reading manifest file 'pycorrector.egg-info/SOURCES.txt' writing manifest file 'pycorrector.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py error: can't copy 'pycorrector/data/kenlm': doesn't exist or not a regular file 安装时报上面的错误,请问是什么原因呢?

shibing624 commented 5 years ago

文件大概18M,可能下载超时导致出错。可以重试,或者直接下载源码。

abc668 commented 5 years ago

两种方式都安装了,均不成功. 第一种:pip3 install pycorrector 出现以下错误: error: can't copy 'pycorrector/data/kenlm': doesn't exist or not a regular file


Failed building wheel for pycorrector Running setup.py clean for pycorrector Failed to build pycorrector Installing collected packages: pycorrector Running setup.py install for pycorrector ... error ..... ...... error: can't copy 'pycorrector/data/kenlm': doesn't exist or not a regular file

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/var/folders/fl/zy1tynld3wx54dgtyy2krynw0000gn/T/pip-install-c03kmdgl/pycorrector/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/fl/zy1tynld3wx54dgtyy2krynw0000gn/T/pip-record-w7k5twx9/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/fl/zy1tynld3wx54dgtyy2krynw0000gn/T/pip-install-c03kmdgl/pycorrector/

第二种半自动安装:python3 setup.py install 的时候 出现以下错误: copying pycorrector/data/same_pinyin.txt -> build/lib/pycorrector/data error: can't copy 'pycorrector/data/cn': doesn't exist or not a regular file

备注: 1.pycorrector文件目录里并没有pycache 2.无下载超时的情况.

请问这样的情况下只能使用源码,不能解决以上这两个问题吗? 出现这些问题是什么导致的呢?

abc668 commented 5 years ago

两种方式都安装了,均不成功. 第一种:pip3 install pycorrector 出现以下错误: error: can't copy 'pycorrector/data/kenlm': doesn't exist or not a regular file

Failed building wheel for pycorrector Running setup.py clean for pycorrector Failed to build pycorrector Installing collected packages: pycorrector Running setup.py install for pycorrector ... error ..... ...... error: can't copy 'pycorrector/data/kenlm': doesn't exist or not a regular file

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;file='/private/var/folders/fl/zy1tynld3wx54dgtyy2krynw0000gn/T/pip-install-c03kmdgl/pycorrector/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/fl/zy1tynld3wx54dgtyy2krynw0000gn/T/pip-record-w7k5twx9/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/fl/zy1tynld3wx54dgtyy2krynw0000gn/T/pip-install-c03kmdgl/pycorrector/

第二种半自动安装:python3 setup.py install 的时候 出现以下错误: copying pycorrector/data/same_pinyin.txt -> build/lib/pycorrector/data error: can't copy 'pycorrector/data/cn': doesn't exist or not a regular file

备注: 1.pycorrector文件目录里并没有pycache 2.无下载超时的情况.

请问这样的情况下只能使用源码,不能解决以上这两个问题吗? 出现这些问题是什么导致的呢?

更新: sudo pip install --upgrade wheel sudo pip install --upgrade setuptools 然后 sudo pip3 install pycorrector
就安装成功了

希望对以上那两位朋友有帮助

zhangjinluo commented 5 years ago

python3 setup.py install 安装时失败 Traceback (most recent call last): File "setup.py", line 8, in from setuptools import setup, find_packages ModuleNotFoundError: No module named 'setuptools'

kelly2016 commented 5 years ago

安装依赖包kenlm的时候不成功: Collecting kenlm==0.0.0 (from -r requirements.txt (line 1)) Using cached https://files.pythonhosted.org/packages/57/54/0cc492b8d7aceb17a9164c6e6b9c9afc2c73706bb39324e8f6fa02f7134a/kenlm-0.tar.gz Building wheels for collected packages: kenlm Building wheel for kenlm (setup.py) ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c "import setuptools, tokenize;file='/private/var/folders/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-install-cvkz60a2/kenlm/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/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-wheel-5byz83df --python-tag cp37: running bdist_wheel running build running build_ext building 'kenlm' extension creating build/temp.macosx-10.9-x86_64-3.7 creating build/temp.macosx-10.9-x86_64-3.7/util creating build/temp.macosx-10.9-x86_64-3.7/lm creating build/temp.macosx-10.9-x86_64-3.7/util/double-conversion creating build/temp.macosx-10.9-x86_64-3.7/python gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/pool.cc -o build/temp.macosx-10.9-x86_64-3.7/util/pool.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/float_to_string.cc -o build/temp.macosx-10.9-x86_64-3.7/util/float_to_string.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/float_to_string.cc:3: In file included from ./util/double-conversion/double-conversion.h:31: ./util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/mmap.cc -o build/temp.macosx-10.9-x86_64-3.7/util/mmap.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/file_piece.cc -o build/temp.macosx-10.9-x86_64-3.7/util/file_piece.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/file_piece.cc:3: In file included from ./util/double-conversion/double-conversion.h:31: ./util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/string_piece.cc -o build/temp.macosx-10.9-x86_64-3.7/util/string_piece.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/bit_packing.cc -o build/temp.macosx-10.9-x86_64-3.7/util/bit_packing.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/usage.cc -o build/temp.macosx-10.9-x86_64-3.7/util/usage.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/file.cc -o build/temp.macosx-10.9-x86_64-3.7/util/file.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/parallel_read.cc -o build/temp.macosx-10.9-x86_64-3.7/util/parallel_read.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/ersatz_progress.cc -o build/temp.macosx-10.9-x86_64-3.7/util/ersatz_progress.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/integer_to_string.cc -o build/temp.macosx-10.9-x86_64-3.7/util/integer_to_string.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/spaces.cc -o build/temp.macosx-10.9-x86_64-3.7/util/spaces.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/murmur_hash.cc -o build/temp.macosx-10.9-x86_64-3.7/util/murmur_hash.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/scoped.cc -o build/temp.macosx-10.9-x86_64-3.7/util/scoped.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/read_compressed.cc -o build/temp.macosx-10.9-x86_64-3.7/util/read_compressed.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/exception.cc -o build/temp.macosx-10.9-x86_64-3.7/util/exception.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/trie_sort.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/trie_sort.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/lm_exception.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/lm_exception.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/value_build.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/value_build.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/binary_format.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/binary_format.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/trie.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/bhiksha.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/bhiksha.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/model.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/model.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/read_arpa.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/read_arpa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/search_hashed.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/search_hashed.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/sizes.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/sizes.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/virtual_interface.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/virtual_interface.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/quantize.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/quantize.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/vocab.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/vocab.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/search_trie.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/search_trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/config.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/config.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/bignum.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/bignum.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB util/double-conversion/bignum.cc:758:7: warning: variable 'i' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis] ++i; ^ util/double-conversion/bignum.cc:753:72: note: incremented here for (int i = other.useddigits + exponent_diff; i < useddigits; ++i) { ^ In file included from util/double-conversion/bignum.cc:28: In file included from util/double-conversion/bignum.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 2 warnings generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/fixed-dtoa.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/fixed-dtoa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/double-conversion/fixed-dtoa.cc:30: In file included from util/double-conversion/fixed-dtoa.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/strtod.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/strtod.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/double-conversion/strtod.cc:31: In file included from util/double-conversion/strtod.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/fast-dtoa.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/fast-dtoa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/double-conversion/fast-dtoa.cc:28: In file included from util/double-conversion/fast-dtoa.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/cached-powers.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/cached-powers.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB util/double-conversion/cached-powers.cc:134:18: warning: unused variable 'kCachedPowersLength' [-Wunused-const-variable] static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers); ^ In file included from util/double-conversion/cached-powers.cc:32: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 2 warnings generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/double-conversion.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/double-conversion.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB util/double-conversion/double-conversion.cc:407:21: warning: code will never be executed [-Wunreachable-code] fast_worked = false; ^~~~~ In file included from util/double-conversion/double-conversion.cc:31: In file included from util/double-conversion/double-conversion.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 2 warnings generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/diy-fp.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/diy-fp.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/double-conversion/diy-fp.cc:29: In file included from util/double-conversion/diy-fp.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/bignum-dtoa.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/bignum-dtoa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB In file included from util/double-conversion/bignum-dtoa.cc:30: In file included from util/double-conversion/bignum-dtoa.h:31: util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef] typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1] ^ 1 warning generated. gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c python/kenlm.cpp -o build/temp.macosx-10.9-x86_64-3.7/python/kenlm.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB python/kenlm.cpp:2591:133: warning: code will never be executed [-Wunreachable-code] pyx_t_3 = PyList_GET_ITEM(pyx_t_1, pyx_t_5); Pyx_INCREF(pyx_t_3); pyx_t_5++; if (unlikely(0 < 0)) {pyx_filename = __pyx_f[0]; pyx_lineno = 175; pyx_clineno = LINE; goto pyx_L1_error;} ^~~ python/kenlm.cpp:3077:133: warning: code will never be executed [-Wunreachable-code] pyx_t_3 = PyList_GET_ITEM(pyx_t_1, pyx_t_5); __Pyx_INCREF(pyx_t_3); pyx_t_5++; if (unlikely(0 < 0)) {pyx_filename = pyx_f[0]; __pyx_lineno = 207; pyx_clineno = LINE; goto __pyx_L1_error;} ^~~ python/kenlm.cpp:5583:21: error: no member named 'exc_type' in '_ts' *type = tstate->exc_type;


  python/kenlm.cpp:5584:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
      *value = tstate->exc_value;
                       ^~~~~~~~~
                       curexc_value
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  python/kenlm.cpp:5585:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
      *tb = tstate->exc_traceback;
                    ^~~~~~~~~~~~~
                    curexc_traceback
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  python/kenlm.cpp:5597:24: error: no member named 'exc_type' in '_ts'
      tmp_type = tstate->exc_type;
                 ~~~~~~  ^
  python/kenlm.cpp:5598:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
      tmp_value = tstate->exc_value;
                          ^~~~~~~~~
                          curexc_value
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  python/kenlm.cpp:5599:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
      tmp_tb = tstate->exc_traceback;
                       ^~~~~~~~~~~~~
                       curexc_traceback
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  python/kenlm.cpp:5600:13: error: no member named 'exc_type' in '_ts'
      tstate->exc_type = type;
      ~~~~~~  ^
  python/kenlm.cpp:5601:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
      tstate->exc_value = value;
              ^~~~~~~~~
              curexc_value
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  python/kenlm.cpp:5602:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
      tstate->exc_traceback = tb;
              ^~~~~~~~~~~~~
              curexc_traceback
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  python/kenlm.cpp:5645:24: error: no member named 'exc_type' in '_ts'
      tmp_type = tstate->exc_type;
                 ~~~~~~  ^
  python/kenlm.cpp:5646:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
      tmp_value = tstate->exc_value;
                          ^~~~~~~~~
                          curexc_value
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  python/kenlm.cpp:5647:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
      tmp_tb = tstate->exc_traceback;
                       ^~~~~~~~~~~~~
                       curexc_traceback
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  python/kenlm.cpp:5648:13: error: no member named 'exc_type' in '_ts'
      tstate->exc_type = local_type;
      ~~~~~~  ^
  python/kenlm.cpp:5649:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
      tstate->exc_value = local_value;
              ^~~~~~~~~
              curexc_value
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  python/kenlm.cpp:5650:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
      tstate->exc_traceback = local_tb;
              ^~~~~~~~~~~~~
              curexc_traceback
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  python/kenlm.cpp:6376:24: error: no member named 'exc_type' in '_ts'
      tmp_type = tstate->exc_type;
                 ~~~~~~  ^
  python/kenlm.cpp:6377:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
      tmp_value = tstate->exc_value;
                          ^~~~~~~~~
                          curexc_value
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
      PyObject *curexc_value;
                ^
  python/kenlm.cpp:6378:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
      tmp_tb = tstate->exc_traceback;
                       ^~~~~~~~~~~~~
                       curexc_traceback
  /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
      PyObject *curexc_traceback;
                ^
  python/kenlm.cpp:6379:13: error: no member named 'exc_type' in '_ts'
      tstate->exc_type = *type;
      ~~~~~~  ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  2 warnings and 20 errors generated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for kenlm
  Running setup.py clean for kenlm
Failed to build kenlm
Installing collected packages: kenlm
  Running setup.py install for kenlm ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-install-cvkz60a2/kenlm/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/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-record-upjdj5ys/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'kenlm' extension
    creating build/temp.macosx-10.9-x86_64-3.7
    creating build/temp.macosx-10.9-x86_64-3.7/util
    creating build/temp.macosx-10.9-x86_64-3.7/lm
    creating build/temp.macosx-10.9-x86_64-3.7/util/double-conversion
    creating build/temp.macosx-10.9-x86_64-3.7/python
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/pool.cc -o build/temp.macosx-10.9-x86_64-3.7/util/pool.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/float_to_string.cc -o build/temp.macosx-10.9-x86_64-3.7/util/float_to_string.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/float_to_string.cc:3:
    In file included from ./util/double-conversion/double-conversion.h:31:
    ./util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/mmap.cc -o build/temp.macosx-10.9-x86_64-3.7/util/mmap.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/file_piece.cc -o build/temp.macosx-10.9-x86_64-3.7/util/file_piece.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/file_piece.cc:3:
    In file included from ./util/double-conversion/double-conversion.h:31:
    ./util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/string_piece.cc -o build/temp.macosx-10.9-x86_64-3.7/util/string_piece.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/bit_packing.cc -o build/temp.macosx-10.9-x86_64-3.7/util/bit_packing.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/usage.cc -o build/temp.macosx-10.9-x86_64-3.7/util/usage.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/file.cc -o build/temp.macosx-10.9-x86_64-3.7/util/file.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/parallel_read.cc -o build/temp.macosx-10.9-x86_64-3.7/util/parallel_read.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/ersatz_progress.cc -o build/temp.macosx-10.9-x86_64-3.7/util/ersatz_progress.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/integer_to_string.cc -o build/temp.macosx-10.9-x86_64-3.7/util/integer_to_string.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/spaces.cc -o build/temp.macosx-10.9-x86_64-3.7/util/spaces.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/murmur_hash.cc -o build/temp.macosx-10.9-x86_64-3.7/util/murmur_hash.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/scoped.cc -o build/temp.macosx-10.9-x86_64-3.7/util/scoped.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/read_compressed.cc -o build/temp.macosx-10.9-x86_64-3.7/util/read_compressed.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/exception.cc -o build/temp.macosx-10.9-x86_64-3.7/util/exception.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/trie_sort.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/trie_sort.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/lm_exception.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/lm_exception.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/value_build.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/value_build.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/binary_format.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/binary_format.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/trie.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/bhiksha.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/bhiksha.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/model.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/model.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/read_arpa.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/read_arpa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/search_hashed.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/search_hashed.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/sizes.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/sizes.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/virtual_interface.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/virtual_interface.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/quantize.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/quantize.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/vocab.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/vocab.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/search_trie.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/search_trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lm/config.cc -o build/temp.macosx-10.9-x86_64-3.7/lm/config.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/bignum.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/bignum.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    util/double-conversion/bignum.cc:758:7: warning: variable 'i' is incremented both in the loop header and in the loop body [-Wfor-loop-analysis]
        ++i;
          ^
    util/double-conversion/bignum.cc:753:72: note: incremented here
      for (int i = other.used_digits_ + exponent_diff; i < used_digits_; ++i) {
                                                                           ^
    In file included from util/double-conversion/bignum.cc:28:
    In file included from util/double-conversion/bignum.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/fixed-dtoa.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/fixed-dtoa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/double-conversion/fixed-dtoa.cc:30:
    In file included from util/double-conversion/fixed-dtoa.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/strtod.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/strtod.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/double-conversion/strtod.cc:31:
    In file included from util/double-conversion/strtod.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/fast-dtoa.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/fast-dtoa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/double-conversion/fast-dtoa.cc:28:
    In file included from util/double-conversion/fast-dtoa.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/cached-powers.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/cached-powers.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    util/double-conversion/cached-powers.cc:134:18: warning: unused variable 'kCachedPowersLength' [-Wunused-const-variable]
    static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
                     ^
    In file included from util/double-conversion/cached-powers.cc:32:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/double-conversion.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/double-conversion.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    util/double-conversion/double-conversion.cc:407:21: warning: code will never be executed [-Wunreachable-code]
          fast_worked = false;
                        ^~~~~
    In file included from util/double-conversion/double-conversion.cc:31:
    In file included from util/double-conversion/double-conversion.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    2 warnings generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/diy-fp.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/diy-fp.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/double-conversion/diy-fp.cc:29:
    In file included from util/double-conversion/diy-fp.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c util/double-conversion/bignum-dtoa.cc -o build/temp.macosx-10.9-x86_64-3.7/util/double-conversion/bignum-dtoa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    In file included from util/double-conversion/bignum-dtoa.cc:30:
    In file included from util/double-conversion/bignum-dtoa.h:31:
    util/double-conversion/utils.h:302:16: warning: unused typedef 'VerifySizesAreEqual' [-Wunused-local-typedef]
      typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1]
                   ^
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I. -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c python/kenlm.cpp -o build/temp.macosx-10.9-x86_64-3.7/python/kenlm.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB
    python/kenlm.cpp:2591:133: warning: code will never be executed [-Wunreachable-code]
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                        ^~~~~~~
    python/kenlm.cpp:3077:133: warning: code will never be executed [-Wunreachable-code]
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
                                                                                                                                        ^~~~~~~
    python/kenlm.cpp:5583:21: error: no member named 'exc_type' in '_ts'
        *type = tstate->exc_type;
                ~~~~~~  ^
    python/kenlm.cpp:5584:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
        *value = tstate->exc_value;
                         ^~~~~~~~~
                         curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    python/kenlm.cpp:5585:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
        *tb = tstate->exc_traceback;
                      ^~~~~~~~~~~~~
                      curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    python/kenlm.cpp:5597:24: error: no member named 'exc_type' in '_ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    python/kenlm.cpp:5598:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    python/kenlm.cpp:5599:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    python/kenlm.cpp:5600:13: error: no member named 'exc_type' in '_ts'
        tstate->exc_type = type;
        ~~~~~~  ^
    python/kenlm.cpp:5601:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
        tstate->exc_value = value;
                ^~~~~~~~~
                curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    python/kenlm.cpp:5602:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    python/kenlm.cpp:5645:24: error: no member named 'exc_type' in '_ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    python/kenlm.cpp:5646:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    python/kenlm.cpp:5647:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    python/kenlm.cpp:5648:13: error: no member named 'exc_type' in '_ts'
        tstate->exc_type = local_type;
        ~~~~~~  ^
    python/kenlm.cpp:5649:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
        tstate->exc_value = local_value;
                ^~~~~~~~~
                curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    python/kenlm.cpp:5650:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
        tstate->exc_traceback = local_tb;
                ^~~~~~~~~~~~~
                curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    python/kenlm.cpp:6376:24: error: no member named 'exc_type' in '_ts'
        tmp_type = tstate->exc_type;
                   ~~~~~~  ^
    python/kenlm.cpp:6377:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
        tmp_value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
        PyObject *curexc_value;
                  ^
    python/kenlm.cpp:6378:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
        tmp_tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
    /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
        PyObject *curexc_traceback;
                  ^
    python/kenlm.cpp:6379:13: error: no member named 'exc_type' in '_ts'
        tstate->exc_type = *type;
        ~~~~~~  ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    2 warnings and 20 errors generated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-install-cvkz60a2/kenlm/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/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-record-upjdj5ys/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/dw/03tq_g0n07v0py7d2jhydv_40000gn/T/pip-install-cvkz60a2/kenlm/
shibing624 commented 5 years ago

kenlm 建议按官方指导的readme在linux下make编译安装,pip可能会安装失败。

JohnParken commented 5 years ago

全自动安装时出错了 ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-zcwyuwue/pycorrector/setup.py", line 18, in with open('LICENSE') as f: FileNotFoundError: [Errno 2] No such file or directory: 'LICENSE'

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-zcwyuwue/pycorrector/

shibing624 commented 5 years ago

update.