Closed sxhmilyoyo closed 6 years ago
What is your system and did you try upgrading cython: pip install --upgrade cython
?
@mpagli System info: Ubuntu 14.04.5 LTS. and I installed the latest cython-0.28.3.
I am not sure my installation steps are correct. First I run make
, then in the src folder, I run python setup.py build_ext
and sudo pip install .
.
Thanks.
@mpagli I solved the issue. It turns out that when I use sudo pip install .
, it uses default pip instead of my anaconda version. I used pip install .
instead, it worked. I am sorry to bother you.
No worries, glad you fixed your issue :)
cc1plus: warning
sorry , i also have the same problem
pare cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /home/zy/miniconda3/envs/py37key/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zy/miniconda3/envs/py37key/lib/python3.7/site-packages/numpy/core/include -I/home/zy/miniconda3/envs/py37key/include/python3.7m -c vector.cc -o build/temp.linux-x86_64-3.7/vector.o -std=c++0x -Wno-cpp -pthread -Wno-sign-compare cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /home/zy/miniconda3/envs/py37key/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zy/miniconda3/envs/py37key/lib/python3.7/site-packages/numpy/core/include -I/home/zy/miniconda3/envs/py37key/include/python3.7m -c real.cc -o build/temp.linux-x86_64-3.7/real.o -std=c++0x -Wno-cpp -pthread -Wno-sign-compare cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /home/zy/miniconda3/envs/py37key/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zy/miniconda3/envs/py37key/lib/python3.7/site-packages/numpy/core/include -I/home/zy/miniconda3/envs/py37key/include/python3.7m -c productquantizer.cc -o build/temp.linux-x86_64-3.7/productquantizer.o -std=c++0x -Wno-cpp -pthread -Wno-sign-compare cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ creating build/lib.linux-x86_64-3.7
which command are you using?
Environment:Ubuntu 16.04.4 LTS python3.7 when i running '''python setup.py build_ext'''
if you pulled the latest version of the code you just need to run pip install . --upgrade
. If it has been generated already, remove the sent2vec.cpp from the src folder.
When I run
sudo pip install .
in src folder after runningpython setup.py build_ext
, I got the following error:When I run
python setup.py build_ext
, I got the following warning:Python version: Python 3.6.6 GCC: 7.2.0