learn-mikegchambers-com / aws-mls-c01 Goto Github PK
View Code? Open in Web Editor NEWResource files for my course on the AWS Machine Learning Specilty certification exam.
Resource files for my course on the AWS Machine Learning Specilty certification exam.
While trying to follow along with Build: Word2vec part 1, Getting the following error message output:
Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages (from nltk) (1.15.0)
Collecting gensim
Using cached gensim-4.2.0.tar.gz (23.2 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.17.0 in /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages (from gensim) (1.19.5)
Requirement already satisfied: scipy>=0.18.1 in /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages (from gensim) (1.5.3)
Requirement already satisfied: smart_open>=1.8.1 in /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages (from gensim) (6.0.0)
Building wheels for collected packages: gensim
Building wheel for gensim (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/ec2-user/anaconda3/envs/python3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/setup.py'"'"'; __file__='"'"'/tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3hrsq7r7
cwd: /tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/
Complete output (463 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/gensim
copying gensim/nosy.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/utils.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/interfaces.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/downloader.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/__init__.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/matutils.py -> build/lib.linux-x86_64-3.6/gensim
creating build/lib.linux-x86_64-3.6/gensim/parsing
copying gensim/parsing/preprocessing.py -> build/lib.linux-x86_64-3.6/gensim/parsing
copying gensim/parsing/porter.py -> build/lib.linux-x86_64-3.6/gensim/parsing
copying gensim/parsing/__init__.py -> build/lib.linux-x86_64-3.6/gensim/parsing
creating build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/logentropy_model.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/basemodel.py -> build/lib.linux-x86_64-3.6/gensim/models
<... removed to meet git issue length >
copying gensim/test/test_indirect_confirmation.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_nmf.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_big.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_text_analysis.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/svd_error.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_utils.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/simspeed.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_logentropy_model.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_datatype.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_glove2word2vec.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_probability_estimation.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_dtm.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_rpmodel.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_tmdiff.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_similarities.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_parsing.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_api.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_word2vec.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/utils.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_lee.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_coherencemodel.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_similarity_metrics.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_fasttext.py -> build/lib.linux-x86_64-3.6/gensim/test
copying gensim/test/test_hdpmodel.py -> build/lib.linux-x86_64-3.6/gensim/test
3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_2.1.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_2.2.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_2.3.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_3.0.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_3.1.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_3.2.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_3.3.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
copying gensim/test/test_data/old_d2v_models/d2v_3.4.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_d2v_models
creating build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.12.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.12.1.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.12.2.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.12.3.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.12.4.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.13.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.13.1.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.13.2.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.13.3.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_0.13.4.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_1.0.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_1.0.1.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_2.0.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_2.1.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_2.2.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_2.3.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_3.0.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_3.1.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_3.2.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_3.3.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_3.4.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/corpora/_mmreader.c -> build/lib.linux-x86_64-3.6/gensim/corpora
copying gensim/corpora/_mmreader.pyx -> build/lib.linux-x86_64-3.6/gensim/corpora
running build_ext
building 'gensim.models.word2vec_inner' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/gensim
creating build/temp.linux-x86_64-3.6/gensim/models
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/models/word2vec_inner.c -o build/temp.linux-x86_64-3.6/gensim/models/word2vec_inner.o
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gensim/models/word2vec_inner.c:706:
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
gensim/models/word2vec_inner.c: In function ‘__pyx_pf_6gensim_6models_14word2vec_inner_train_batch_sg.isra.18’:
gensim/models/word2vec_inner.c:5059:47: warning: ‘__pyx_v_vocab_sample_ints’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_6 = (((__pyx_v_vocab_sample_ints[__pyx_t_11]) < __pyx_f_6gensim_6models_14word2vec_inner_random_int32((&__pyx_v_c.next_random))) != 0);
^
gensim/models/word2vec_inner.c: In function ‘__pyx_pf_6gensim_6models_14word2vec_inner_2train_batch_cbow.isra.17’:
gensim/models/word2vec_inner.c:6231:47: warning: ‘__pyx_v_vocab_sample_ints’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_7 = (((__pyx_v_vocab_sample_ints[__pyx_t_12]) < __pyx_f_6gensim_6models_14word2vec_inner_random_int32((&__pyx_v_c.next_random))) != 0);
^
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/models/word2vec_inner.o -o build/lib.linux-x86_64-3.6/gensim/models/word2vec_inner.cpython-36m-x86_64-linux-gnu.so
building 'gensim.corpora._mmreader' extension
creating build/temp.linux-x86_64-3.6/gensim/corpora
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/corpora/_mmreader.c -o build/temp.linux-x86_64-3.6/gensim/corpora/_mmreader.o
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/corpora/_mmreader.o -o build/lib.linux-x86_64-3.6/gensim/corpora/_mmreader.cpython-36m-x86_64-linux-gnu.so
building 'gensim.models.fasttext_inner' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/models/fasttext_inner.c -o build/temp.linux-x86_64-3.6/gensim/models/fasttext_inner.o
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gensim/models/fasttext_inner.c:707:
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
gensim/models/fasttext_inner.c: In function ‘__pyx_f_6gensim_6models_14fasttext_inner_fasttext_fast_sentence_sg_neg’:
gensim/models/fasttext_inner.c:2346:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
^
gensim/models/fasttext_inner.c:2612:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
^
In file included from gensim/models/fasttext_inner.c:715:0:
gensim/models/fasttext_inner.c: At top level:
gensim/models/voidptr.h:8:15: warning: ‘PyCObject_AsVoidPtr’ defined but not used [-Wunused-function]
static void * PyCObject_AsVoidPtr(PyObject *obj)
^
gensim/models/fasttext_inner.c: In function ‘__pyx_f_6gensim_6models_14fasttext_inner_populate_ft_config’:
gensim/models/fasttext_inner.c:4807:47: warning: ‘__pyx_v_vocab_sample_ints’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_6 = (((__pyx_v_vocab_sample_ints[__pyx_t_14]) < __pyx_f_6gensim_6models_14word2vec_inner_random_int32((&__pyx_v_c->next_random))) != 0);
^
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/models/fasttext_inner.o -o build/lib.linux-x86_64-3.6/gensim/models/fasttext_inner.cpython-36m-x86_64-linux-gnu.so
building 'gensim._matutils' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/_matutils.c -o build/temp.linux-x86_64-3.6/gensim/_matutils.o
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gensim/_matutils.c:701:
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/_matutils.o -o build/lib.linux-x86_64-3.6/gensim/_matutils.cpython-36m-x86_64-linux-gnu.so
building 'gensim.models.nmf_pgd' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/models/nmf_pgd.c -o build/temp.linux-x86_64-3.6/gensim/models/nmf_pgd.o
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/models/nmf_pgd.o -o build/lib.linux-x86_64-3.6/gensim/models/nmf_pgd.cpython-36m-x86_64-linux-gnu.so
building 'gensim.similarities.fastss' extension
creating build/temp.linux-x86_64-3.6/gensim/similarities
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/similarities/fastss.c -o build/temp.linux-x86_64-3.6/gensim/similarities/fastss.o
gensim/similarities/fastss.c: In function ‘ceditdist’:
gensim/similarities/fastss.c:725:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (WIDTH tmpi = 0; tmpi <= len_s1; tmpi++) row2[tmpi] = tmpi;
^
gensim/similarities/fastss.c:725:9: note: use option -std=c99 or -std=gnu99 to compile your code
gensim/similarities/fastss.c:727:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (WIDTH i2 = 0; i2 < len_s2; i2++) {
^
gensim/similarities/fastss.c:738:13: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (WIDTH i1 = 0; i1 < len_s1; i1++) {
^
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for gensim
Running setup.py clean for gensim
Failed to build gensim
Installing collected packages: gensim
Running setup.py install for gensim ... error
ERROR: Command errored out with exit status 1:
command: /home/ec2-user/anaconda3/envs/python3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/setup.py'"'"'; __file__='"'"'/tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-v5nfdk_b/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/anaconda3/envs/python3/include/python3.6m/gensim
cwd: /tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/
Complete output (463 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/gensim
copying gensim/nosy.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/utils.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/interfaces.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/downloader.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/__init__.py -> build/lib.linux-x86_64-3.6/gensim
copying gensim/matutils.py -> build/lib.linux-x86_64-3.6/gensim
creating build/lib.linux-x86_64-3.6/gensim/parsing
copying gensim/parsing/preprocessing.py -> build/lib.linux-x86_64-3.6/gensim/parsing
copying gensim/parsing/porter.py -> build/lib.linux-x86_64-3.6/gensim/parsing
copying gensim/parsing/__init__.py -> build/lib.linux-x86_64-3.6/gensim/parsing
creating build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/logentropy_model.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/basemodel.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/coherencemodel.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/lda_dispatcher.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/tfidfmodel.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/ldamulticore.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/lsi_worker.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/lsi_dispatcher.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/hdpmodel.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/ensemblelda.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/ldamodel.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/fasttext.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/rpmodel.py -> build/lib.linux-x86_64-3.6/gensim/models
copying gensim/models/translation_matrix.py -> build/lib.linux-x86_64-3.6/gensim/models
3.6/gensim/test/test_data/old_w2v_models
copying gensim/test/test_data/old_w2v_models/w2v_3.4.0.mdl -> build/lib.linux-x86_64-3.6/gensim/test/test_data/old_w2v_models
copying gensim/corpora/_mmreader.c -> build/lib.linux-x86_64-3.6/gensim/corpora
copying gensim/corpora/_mmreader.pyx -> build/lib.linux-x86_64-3.6/gensim/corpora
running build_ext
building 'gensim.models.word2vec_inner' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/gensim
creating build/temp.linux-x86_64-3.6/gensim/models
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/models/word2vec_inner.c -o build/temp.linux-x86_64-3.6/gensim/models/word2vec_inner.o
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gensim/models/word2vec_inner.c:706:
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
gensim/models/word2vec_inner.c: In function ‘__pyx_pf_6gensim_6models_14word2vec_inner_train_batch_sg.isra.18’:
gensim/models/word2vec_inner.c:5059:47: warning: ‘__pyx_v_vocab_sample_ints’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_6 = (((__pyx_v_vocab_sample_ints[__pyx_t_11]) < __pyx_f_6gensim_6models_14word2vec_inner_random_int32((&__pyx_v_c.next_random))) != 0);
^
gensim/models/word2vec_inner.c: In function ‘__pyx_pf_6gensim_6models_14word2vec_inner_2train_batch_cbow.isra.17’:
gensim/models/word2vec_inner.c:6231:47: warning: ‘__pyx_v_vocab_sample_ints’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_7 = (((__pyx_v_vocab_sample_ints[__pyx_t_12]) < __pyx_f_6gensim_6models_14word2vec_inner_random_int32((&__pyx_v_c.next_random))) != 0);
^
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/models/word2vec_inner.o -o build/lib.linux-x86_64-3.6/gensim/models/word2vec_inner.cpython-36m-x86_64-linux-gnu.so
building 'gensim.corpora._mmreader' extension
creating build/temp.linux-x86_64-3.6/gensim/corpora
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/corpora/_mmreader.c -o build/temp.linux-x86_64-3.6/gensim/corpora/_mmreader.o
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/corpora/_mmreader.o -o build/lib.linux-x86_64-3.6/gensim/corpora/_mmreader.cpython-36m-x86_64-linux-gnu.so
building 'gensim.models.fasttext_inner' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/models/fasttext_inner.c -o build/temp.linux-x86_64-3.6/gensim/models/fasttext_inner.o
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gensim/models/fasttext_inner.c:707:
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
gensim/models/fasttext_inner.c: In function ‘__pyx_f_6gensim_6models_14fasttext_inner_fasttext_fast_sentence_sg_neg’:
gensim/models/fasttext_inner.c:2346:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
^
gensim/models/fasttext_inner.c:2612:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
^
In file included from gensim/models/fasttext_inner.c:715:0:
gensim/models/fasttext_inner.c: At top level:
gensim/models/voidptr.h:8:15: warning: ‘PyCObject_AsVoidPtr’ defined but not used [-Wunused-function]
static void * PyCObject_AsVoidPtr(PyObject *obj)
^
gensim/models/fasttext_inner.c: In function ‘__pyx_f_6gensim_6models_14fasttext_inner_populate_ft_config’:
gensim/models/fasttext_inner.c:4807:47: warning: ‘__pyx_v_vocab_sample_ints’ may be used uninitialized in this function [-Wmaybe-uninitialized]
__pyx_t_6 = (((__pyx_v_vocab_sample_ints[__pyx_t_14]) < __pyx_f_6gensim_6models_14word2vec_inner_random_int32((&__pyx_v_c->next_random))) != 0);
^
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/models/fasttext_inner.o -o build/lib.linux-x86_64-3.6/gensim/models/fasttext_inner.cpython-36m-x86_64-linux-gnu.so
building 'gensim._matutils' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/_matutils.c -o build/temp.linux-x86_64-3.6/gensim/_matutils.o
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gensim/_matutils.c:701:
/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/_matutils.o -o build/lib.linux-x86_64-3.6/gensim/_matutils.cpython-36m-x86_64-linux-gnu.so
building 'gensim.models.nmf_pgd' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/models/nmf_pgd.c -o build/temp.linux-x86_64-3.6/gensim/models/nmf_pgd.o
gcc -pthread -shared -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -L/home/ec2-user/anaconda3/envs/python3/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/python3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/gensim/models/nmf_pgd.o -o build/lib.linux-x86_64-3.6/gensim/models/nmf_pgd.cpython-36m-x86_64-linux-gnu.so
building 'gensim.similarities.fastss' extension
creating build/temp.linux-x86_64-3.6/gensim/similarities
gcc -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/python3/include/python3.6m -I/home/ec2-user/anaconda3/envs/python3/lib/python3.6/site-packages/numpy/core/include -c gensim/similarities/fastss.c -o build/temp.linux-x86_64-3.6/gensim/similarities/fastss.o
gensim/similarities/fastss.c: In function ‘ceditdist’:
gensim/similarities/fastss.c:725:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (WIDTH tmpi = 0; tmpi <= len_s1; tmpi++) row2[tmpi] = tmpi;
^
gensim/similarities/fastss.c:725:9: note: use option -std=c99 or -std=gnu99 to compile your code
gensim/similarities/fastss.c:727:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (WIDTH i2 = 0; i2 < len_s2; i2++) {
^
gensim/similarities/fastss.c:738:13: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (WIDTH i1 = 0; i1 < len_s1; i1++) {
^
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/ec2-user/anaconda3/envs/python3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/setup.py'"'"'; __file__='"'"'/tmp/pip-install-58c9w4r7/gensim_343639efd468438c9fd475c361faee17/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-v5nfdk_b/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/anaconda3/envs/python3/include/python3.6m/gensim Check the logs for full command output.```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.