Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

unable to install word2vec on Ubuntu 18.04.1 #61

Closed
ftk1000 opened this issue Sep 23, 2019 · 2 comments
Closed

unable to install word2vec on Ubuntu 18.04.1 #61

ftk1000 opened this issue Sep 23, 2019 · 2 comments

Comments

@ftk1000
Copy link

ftk1000 commented Sep 23, 2019

Tried to install word2vec with and without '-U' flag, with pip and pip3. Keep receiving the same error:

$ pip install word2vec
Collecting word2vec
  Using cached https://files.pythonhosted.org/packages/98/9c/0cc6019be231950235517c29d2d6a2fca76dfa75ad4162ccce22fb1b4364/word2vec-0.9.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-zG4Ed2/word2vec/setup.py", line 23, in <module>
        from Cython.Build import cythonize
    ImportError: No module named Cython.Build
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zG4Ed2/word2vec/

Environment:

$ uname -a
Linux E7440 5.0.0-23-generic #24~18.04.1-Ubuntu SMP Mon Jul 29 16:12:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ python --version
Python 2.7.15+

$ python3 --version
Python 3.6.8
@gocen
Copy link

gocen commented Oct 10, 2019

I also have the same problem. I've tried
pip install --upgrade setuptools
but nothing changed

This was referenced Jan 25, 2020
@danielfrg
Copy link
Owner

You need to install Cython first.

pip install cython

will fix it.

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

No branches or pull requests

3 participants