Running TextBlob in Python3

I installed textblob using pip as indicated here .

Now when I try to import this into python3.4 in the terminal, then it says

ImportError: No module named 'textblob' 

While in python2.7, it imports successfully. I tried reinstalling it. I even reinstalled pip. What is the problem?

+6
source share
1 answer

Elementary OS derived from Ubuntu

 $ sudo apt-get install python3-pip ... $ pip3 install textblob 

gotta do the trick. You may need to apply some minor variations to the above because of the possible differences between Elementary and Ubuntu.

Remember that Python 2.7 and Python 3.x are two independent systems, what you install in 2.7 is definitely NOT automatically available for 3.x, and the converse is equally true.

+5
source

Source: https://habr.com/ru/post/982469/


All Articles