TensorFlow Word2vec nsync_cv_h: no such file or directory

Add the path to header files to the compiler, add the following line to g++ :

-I  YOUR_TENSOR_FLOW_DIR/lib/python3.5/site-packages/external/nsync/public/

-I indicates the path to the header files.

You should have something like this:

g++ -std=c++11 -shared word2vec_ops.cc word2vec_kernels.cc -o word2vec_ops.so -fPIC -I $TF_INC -I /home/philippe/tensorflow/lib/python3.5/site-packages/external/nsync/public/ -O2 -D_GLIBCXX_USE_CXX11_ABI=0

Leave a Reply

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