Giter Site home page Giter Site logo

Comments (11)

harpreetset1 avatar harpreetset1 commented on July 27, 2024 24

Try this

export CC="/usr/local/bin/gcc-6"
export CFLAGS="-Wa,-q"
pip install glove_python

from glove-python.

erccarls avatar erccarls commented on July 27, 2024 9

@barryef You are still using clang I believe. If you have gcc installed via brew, try setting the compiler via

export CC=/usr/local/Cellar/gcc/6.3.0_1/bin/g++-6

Then run the pip install. The path above should be corrected for your gcc version

from glove-python.

panaali avatar panaali commented on July 27, 2024 9

You need to install gcc via brew:
brew install gcc
and then export gcc into CC like:
export CC=/usr/local/Cellar/gcc/6.3.0_1/bin/g++-6

you should change "6.3.0_1" & "g++-6" according to your version.

from glove-python.

oliverk90 avatar oliverk90 commented on July 27, 2024 3

I had the same initial problem and did the following as mentioned here

You need to install gcc via brew:
brew install gcc
and then export gcc into CC like:
export CC=/usr/local/Cellar/gcc/6.3.0_1/bin/g++-6

you should change "6.3.0_1" & "g++-6" according to your version.

I changed to 8.3.0. Now I get another error.

regex_3/_regex.c:26401:37: error: invalid conversion from 'void*' to 'RE_LocaleInfo*' [-fpermissive]
self->locale_info = re_alloc(sizeof(RE_LocaleInfo));
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/local/Cellar/gcc/8.3.0/bin/g++-8' failed with exit status 1

Any ideas whats the problem?

from glove-python.

Jellevanderwerff avatar Jellevanderwerff commented on July 27, 2024 1

You need to install gcc via brew:
brew install gcc
and then export gcc into CC like:
export CC=/usr/local/Cellar/gcc/6.3.0_1/bin/g++-6

you should change "6.3.0_1" & "g++-6" according to your version.

Thanks so much. This worked for installing pyicu! I used 'conda install gcc', though.

from glove-python.

Binathi avatar Binathi commented on July 27, 2024

Try this:

$ conda install llvm gcc libgcc
$ pip install glove_python

from glove-python.

iamaziz avatar iamaziz commented on July 27, 2024

Try this

export CC="/usr/local/bin/gcc-6"
export CFLAGS="-Wa,-q"
pip install glove_python

This has just saved my whole week! thank you ๐Ÿ‘๐Ÿป @harpreetset1

from glove-python.

panaali avatar panaali commented on July 27, 2024

I had the same initial problem and did the following as mentioned here

You need to install gcc via brew:
brew install gcc
and then export gcc into CC like:
export CC=/usr/local/Cellar/gcc/6.3.0_1/bin/g++-6
you should change "6.3.0_1" & "g++-6" according to your version.

I changed to 8.3.0. Now I get another error.

regex_3/_regex.c:26401:37: error: invalid conversion from 'void*' to 'RE_LocaleInfo*' [-fpermissive]
self->locale_info = re_alloc(sizeof(RE_LocaleInfo));

error: command '/usr/local/Cellar/gcc/8.3.0/bin/g++-8' failed with exit status 1

Any ideas whats the problem?

@oliverk90 I would suggest installing the gcc 6 instead of 8. Maybe that's the cause of the problem.

from glove-python.

ebron01 avatar ebron01 commented on July 27, 2024

as @erccarls stated, exporting true version for gcc is important.

  1. ''brew install gcc'' (if installed already, ''brew upgrade gcc'' to make sure to have latest version )
  2. export CC=CC=/usr/local/Cellar/gcc/8.3.0/bin/g++-8 (you must check which version you have in gcc directory, for me it's 8.3.0)
  3. pip install glove_python

from glove-python.

VenkateshDas avatar VenkateshDas commented on July 27, 2024

Try this

export CC="/usr/local/bin/gcc-6"
export CFLAGS="-Wa,-q"
pip install glove_python

Before this Downgrade to python 3.6 , there is some issue with python 3.7 glove installation

from glove-python.

blimeyitscode avatar blimeyitscode commented on July 27, 2024

I get the following error when I run -pip install glove_python, can someone please help!

Collecting glove_python
Using cached https://files.pythonhosted.org/packages/3e/79/7e7e548dd9dcb741935d031117f4bed133276c2a047aadad42f1552d1771/glove_python-0.1.0.tar.gz
Requirement already satisfied: numpy in /Users/gaurangajitambani/miniconda3/envs/untitled/lib/python3.7/site-packages (from glove_python) (1.17.2)
Requirement already satisfied: scipy in /Users/gaurangajitambani/miniconda3/envs/untitled/lib/python3.7/site-packages (from glove_python) (1.3.1)
Building wheels for collected packages: glove-python
Building wheel for glove-python (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/gaurangajitambani/miniconda3/envs/untitled/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/setup.py'"'"'; file='"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/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 /private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-wheel-k0u6cuil --python-tag cp37
cwd: /private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/glove
copying glove/init.py -> build/lib.macosx-10.9-x86_64-3.7/glove
copying glove/glove.py -> build/lib.macosx-10.9-x86_64-3.7/glove
copying glove/corpus.py -> build/lib.macosx-10.9-x86_64-3.7/glove
running build_ext
building 'glove.glove_cython' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/glove
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gaurangajitambani/miniconda3/envs/untitled/include -arch x86_64 -I/Users/gaurangajitambani/miniconda3/envs/untitled/include -arch x86_64 -I/Users/gaurangajitambani/miniconda3/envs/untitled/include/python3.7m -c glove/glove_cython.c -o build/temp.macosx-10.9-x86_64-3.7/glove/glove_cython.o -fopenmp -ffast-math -march=native
clang: error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for glove-python
Running setup.py clean for glove-python
ERROR: Command errored out with exit status 1:
command: /Users/gaurangajitambani/miniconda3/envs/untitled/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/setup.py'"'"'; file='"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' clean --all
cwd: /private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python
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: /Users/gaurangajitambani/miniconda3/envs/untitled/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/setup.py'"'"'; file='"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/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 /private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-record-5u39ky70/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/
Complete output (8 lines):
running install
running build
running build_py
running build_ext
building 'glove.glove_cython' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gaurangajitambani/miniconda3/envs/untitled/include -arch x86_64 -I/Users/gaurangajitambani/miniconda3/envs/untitled/include -arch x86_64 -I/Users/gaurangajitambani/miniconda3/envs/untitled/include/python3.7m -c glove/glove_cython.c -o build/temp.macosx-10.9-x86_64-3.7/glove/glove_cython.o -fopenmp -ffast-math -march=native
clang: error: unsupported option '-fopenmp'
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/gaurangajitambani/miniconda3/envs/untitled/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/glove-python/setup.py'"'"'; file='"'"'/private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-install-w_s8dpij/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 /private/var/folders/10/lrbc2zks4x78d1rfzh5g5fs00000gn/T/pip-record-5u39ky70/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

from glove-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.