[Python] ImportError: No module named textblob

Discussão em 'Python' iniciado por Stack, Fevereiro 9, 2025.

  1. Stack

    Stack Membro Participativo

    I am using Atom and just getting started with Python. When I try to run this code:

    from textblob import TextBlob
    from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer

    analysis = TextBlob("TextBlob sure looks like it has some interesting
    features")

    print(analysis.tags)


    I get this:

    Traceback (most recent call last):
    File "/Users/bethwalsh/Documents/GitHub/automated-personas/py/test_001.py",
    line 1, in <module>
    from textblob import TextBlob
    ImportError: No module named textblob


    I have tried to install textblob but still no change:

    $ pip3 install textblob
    Requirement already satisfied: textblob in
    /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
    (0.15.1)


    Any ideas?

    Continue reading...

Compartilhe esta Página