I was trying to import TextBlob into Python.
When I run the command directly inside shell, it works pretty well: from textblob import TextBlob
However, when I put it into the py file and run it, it doesn't work anymore, it says:
ImportError: cannot import name 'TextBlob'
Please help me out with it, so desperate right now...Thanks a lot
I have install textblog by pip with the command :
And i have download the corpus with the command :
And that works fine with the example of textblob website.
Here is the example that i run with the command :
./test.py
just before i use
chmod +755 test.py