note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: 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
error: subprocess-exited-with-error
× Running setup.py install for kenlm did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running install
/Users/shashankgupta/opt/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'kenlm' extension
creating build
creating build/temp.macosx-10.9-x86_64-cpython-38
creating build/temp.macosx-10.9-x86_64-cpython-38/lm
creating build/temp.macosx-10.9-x86_64-cpython-38/python
creating build/temp.macosx-10.9-x86_64-cpython-38/util
creating build/temp.macosx-10.9-x86_64-cpython-38/util/double-conversion
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shashankgupta/opt/anaconda3/include -arch x86_64 -I/Users/shashankgupta/opt/anaconda3/include -arch x86_64 -I. -I/Users/shashankgupta/opt/anaconda3/include/python3.8 -c lm/bhiksha.cc -o build/temp.macosx-10.9-x86_64-cpython-38/lm/bhiksha.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> kenlm
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Note: you may need to restart the kernel to use updated packages.
Hi, I am on python 3.8 and while installing kenlm, i am getting the error as mentioned.
Collecting https://github.com/kpu/kenlm/archive/master.zip Using cached https://github.com/kpu/kenlm/archive/master.zip Preparing metadata (setup.py) ... done Building wheels for collected packages: kenlm Building wheel for kenlm (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [13 lines of output] running bdist_wheel running build running build_ext building 'kenlm' extension creating build creating build/temp.macosx-10.9-x86_64-cpython-38 creating build/temp.macosx-10.9-x86_64-cpython-38/lm creating build/temp.macosx-10.9-x86_64-cpython-38/python creating build/temp.macosx-10.9-x86_64-cpython-38/util creating build/temp.macosx-10.9-x86_64-cpython-38/util/double-conversion gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shashankgupta/opt/anaconda3/include -arch x86_64 -I/Users/shashankgupta/opt/anaconda3/include -arch x86_64 -I. -I/Users/shashankgupta/opt/anaconda3/include/python3.8 -c lm/bhiksha.cc -o build/temp.macosx-10.9-x86_64-cpython-38/lm/bhiksha.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command '/usr/bin/gcc' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: 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 error: subprocess-exited-with-error
× Running setup.py install for kenlm did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running install /Users/shashankgupta/opt/anaconda3/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_ext building 'kenlm' extension creating build creating build/temp.macosx-10.9-x86_64-cpython-38 creating build/temp.macosx-10.9-x86_64-cpython-38/lm creating build/temp.macosx-10.9-x86_64-cpython-38/python creating build/temp.macosx-10.9-x86_64-cpython-38/util creating build/temp.macosx-10.9-x86_64-cpython-38/util/double-conversion gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/shashankgupta/opt/anaconda3/include -arch x86_64 -I/Users/shashankgupta/opt/anaconda3/include -arch x86_64 -I. -I/Users/shashankgupta/opt/anaconda3/include/python3.8 -c lm/bhiksha.cc -o build/temp.macosx-10.9-x86_64-cpython-38/lm/bhiksha.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command '/usr/bin/gcc' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> kenlm
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. Note: you may need to restart the kernel to use updated packages.
Please advice!