Press "Enter" to skip to content

Resolve the word2vec installing error

1st time I try to install word2vec

root@dev:/# pip install word2vec
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting word2vec
 Downloading https://mirrors.aliyun.com/pypi/packages/ce/51/5e2782b204015c8aef0ac830297c2f2735143ec90f592b9b3b909bb89757/word2vec-0.10.2.tar.gz (60kB)
 100% |████████████████████████████████| 61kB 1.1MB/s
 Complete output from command python setup.py egg_info:
 Traceback (most recent call last):
 File "", line 1, in
 File "/tmp/pip-install-rj7udqcw/word2vec/setup.py", line 4, in
 from Cython.Build import cythonize
 ModuleNotFoundError: No module named 'Cython'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-rj7udqcw/word2vec/

resolve it

root@dev:/# pip install Cython
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting Cython
 Downloading https://mirrors.aliyun.com/pypi/packages/e1/fd/711507fa396064bf716493861d6955af45369d2c470548e34af20b79d4d4/Cython-0.29.6-cp36-cp36m-manylinux1_x86_64.whl (2.1MB)
 100% |████████████████████████████████| 2.1MB 58.3MB/s
Installing collected packages: Cython
Successfully installed Cython-0.29.6
root@dev:/# pip install word2vec
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting word2vec
 Downloading https://mirrors.aliyun.com/pypi/packages/ce/51/5e2782b204015c8aef0ac830297c2f2735143ec90f592b9b3b909bb89757/word2vec-0.10.2.tar.gz (60kB)
 100% |████████████████████████████████| 61kB 1.4MB/s
Requirement already satisfied: cython in /usr/local/lib/python3.6/dist-packages (from word2vec) (0.29.6)
Requirement already satisfied: numpy>=1.9.2 in /usr/local/lib/python3.6/dist-packages (from word2vec) (1.15.4)
Requirement already satisfied: scikit-learn in /usr/local/lib/python3.6/dist-packages (from word2vec) (0.20.1)
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from word2vec) (1.1.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from word2vec) (1.11.0)
Building wheels for collected packages: word2vec
 Building wheel for word2vec (setup.py) ... done
 Stored in directory: /root/.cache/pip/wheels/6c/41/28/8a47f03d8b1387e2360e13f9719847eb545d0daa5f65d44ef3
Successfully built word2vec
Installing collected packages: word2vec
Successfully installed word2vec-0.10.2

One Comment

  1. fakeName fakeName June 17, 2020

    Thank you! you saved me!

Leave a Reply

Your email address will not be published. Required fields are marked *