I am trying to install pycontractions, but it fails with error as below, any idea how to fix this?
I tried with conda but it does not have this package
pip install pycontractions
➜ ~ pip install pycontractions
Collecting pycontractions
Using cached pycontractions-2.0.1-py3-none-any.whl (9.6 kB)
Requirement already satisfied: pyemd>=0.4.4 in ./anaconda3/lib/python3.8/site-packages (from pycontractions) (0.5.1)
Requirement already satisfied: gensim>=2.0 in ./anaconda3/lib/python3.8/site-packages (from pycontractions) (3.8.3)
Collecting language-check>=1.0
Using cached language-check-1.1.tar.gz (33 kB)
Requirement already satisfied: six>=1.5.0 in ./anaconda3/lib/python3.8/site-packages (from gensim>=2.0->pycontractions) (1.15.0)
Requirement already satisfied: scipy>=0.18.1 in ./anaconda3/lib/python3.8/site-packages (from gensim>=2.0->pycontractions) (1.6.0)
Requirement already satisfied: smart-open>=1.8.1 in ./anaconda3/lib/python3.8/site-packages (from gensim>=2.0->pycontractions) (4.0.1)
Requirement already satisfied: numpy>=1.11.3 in ./anaconda3/lib/python3.8/site-packages (from gensim>=2.0->pycontractions) (1.19.5)
Building wheels for collected packages: language-check
Building wheel for language-check (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/chandanmalla/anaconda3/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/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 /tmp/pip-wheel-799tz281
cwd: /tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/
Complete output (4 lines):
Could not parse Java version from """openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10, mixed mode)
""".
----------------------------------------
ERROR: Failed building wheel for language-check
Running setup.py clean for language-check
Failed to build language-check
Installing collected packages: language-check, pycontractions
Running setup.py install for language-check ... error
ERROR: Command errored out with exit status 1:
command: /home/chandanmalla/anaconda3/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-whpzc2so/install-record.txt --single-version-externally-managed --compile --install-headers /home/chandanmalla/anaconda3/include/python3.8/language-check
cwd: /tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/
Complete output (4 lines):
Could not parse Java version from """openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10, mixed mode)
""".
----------------------------------------
ERROR: Command errored out with exit status 1: /home/chandanmalla/anaconda3/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bfmnwlkb/language-check_f69d4d9b5ed64600bceefdb6cc11cab8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-whpzc2so/install-record.txt --single-version-externally-managed --compile --install-headers /home/chandanmalla/anaconda3/include/python3.8/language-check Check the logs for full command output.