Open Jim0530 opened 4 years ago
It seems you don't have GCC installed. GCC is a C(++) compiler which this package needs to compile. Try installing GCC. https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/
@Jim0530 I've tried pre-compiling the binaries. Could you try running pip install glove_python_binary
?
@IronFarm I was running into the same problem (had gcc already), and installing with the pre-compiled binaries worked for me. Thanks!
@salwon that's great, thanks for the feedback!
@Jim0530 I've tried pre-compiling the binaries. Could you try running
pip install glove_python_binary
?
I got troubled with the same problem when installing and your pre-compiled version perfectly fits! Thanks a lot for your contribution!
Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help
error: option --all not recognized
ERROR: Failed cleaning build dir for glove-python Failed to build glove-python Installing collected packages: glove-python Running setup.py install for glove-python ... error ERROR: Command errored out with exit status 1: command: /root/anaconda3/envs/sccheng-el/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1nhacle1/glove-python/setup.py'"'"'; file='"'"'/tmp/pip-install-1nhacle1/glove-python/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-cm1k1n02/install-record.txt --single-version-externally-managed --compile --install-headers /root/anaconda3/envs/sccheng-el/include/python3.6m/glove-python cwd: /tmp/pip-install-1nhacle1/glove-python/ Complete output (8 lines): running install running build running build_py running build_ext building 'glove.glove_cython' extension gcc -pthread -B /root/anaconda3/envs/sccheng-el/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/sccheng-el/include/python3.6m -c glove/glove_cython.c -o build/temp.linux-x86_64-3.6/glove/glove_cython.o -fopenmp -ffast-math unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1
ERROR: Command errored out with exit status 1: /root/anaconda3/envs/sccheng-el/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1nhacle1/glove-python/setup.py'"'"'; file='"'"'/tmp/pip-install-1nhacle1/glove-python/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-cm1k1n02/install-record.txt --single-version-externally-managed --compile --install-headers /root/anaconda3/envs/sccheng-el/include/python3.6m/glove-python Check the logs for full command output.