Feb-12-2017, 02:28 AM
Good day everyone. Need some help in installing pycld2 in ubuntu 14.04 with python 2.7 and python 3.4 as pre-installed (I'm using virtualenv to run python3). pycld2 in required for polyglot and I get this error below while installing. I installed python3-dev already as suggested from forums but still stock with the same problem. I checked /usr/include/python3.4m/pyconfig.h and it is present. Do I need to edit pyconfig.h? I issued pip install pycld2 then I received the error below. Please bear with me, I'm just new to ubuntu and python. Thank you.
Error:/usr/include/python3.4m/pyconfig.h:3:52: fatal error: x86_64-linux-gnu/python3.4m/pyconfig.h: No such file or directory
# include <x86_64-linux-gnu/python3.4m/pyconfig.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/user/py3env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9ipj144u/pycld2/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-at_4tdl3-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/py3env/include/site/python3.4/pycld2" failed with error code 1 in /tmp/pip-build-9ipj144u/pycld2/