installed paddlehub via pip: now cannot import paddle.fluid
Created by: andreazanetti
Hi, I am not sure I am posting this issue in the right place, however, the problem I am having is the following:
I have installed PaddlePaddle from source, and then cloned the paddle model repo.
Happily tested VGG, did some stuff with VisualDL to test it, happily run sentiment_classification using run.sh script under PaddleNL/sentiment_calssification
Once I tried to run ernie for sentiment classification however, using ./run_ernie.sh train it complained that "import paddlehub" could not be done as module was absent.
So I have installed it, pip install paddlehub --user
, and after that I cannot import paddle.fluid anymore. Anytime I try I get the following error message:
File "/nfs/pdx/home/azanetti/.local/lib/python2.7/site-packages/nltk/probability.py", line 333 print("%*s" % (width, samples[i]), end=" ") ^ SyntaxError: invalid syntax
I thought it was something connected to missing from __future_ import print_function
or alike but these imports are already in the code. Could you please let me know? thanks!