Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed installing Glove_python on linux #108

Open
Jim0530 opened this issue Apr 13, 2020 · 5 comments
Open

Failed installing Glove_python on linux #108

Jim0530 opened this issue Apr 13, 2020 · 5 comments

Comments

@Jim0530
Copy link

Jim0530 commented Apr 13, 2020

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.

@IronFarm
Copy link

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/

@IronFarm
Copy link

@Jim0530 I've tried pre-compiling the binaries. Could you try running pip install glove_python_binary?

@salwon
Copy link

salwon commented Jul 9, 2020

@IronFarm I was running into the same problem (had gcc already), and installing with the pre-compiled binaries worked for me. Thanks!

@IronFarm
Copy link

@salwon that's great, thanks for the feedback!

@Asichurter
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants