Problem with this lib in raspberrypi 3: can't install.
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-m64’
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Similar to https://stackoverflow.com/questions/36115835/how-to-install-polyglot-on-raspberry-pi-problems-with-compatibility
I managed to solve this problem.
First you need to do is to download polyglot's source code:
git clone https://github.com/aboSamoor/polyglot Then edit setup.py:
nano polyglot/pycld2/setup.py Change this line:
extra_compile_args=['-w', '-O2', '-m64', '-fPIC'], to:
extra_compile_args=['-w', '-O2', '-fPIC'], Install PYCLD2:
sudo ./setup.py install Install polyglot:
cd .. sudo ./setup.py install
Can we use the same approach as https://github.com/Theano/Theano/pull/3544/files to fix the setup.py to make it possible to compile in raspberrypi as well? Manually doing what's in the stackoverflow link it works.