I cant import textblob package

不打扰是莪最后的温柔 提交于 2019-12-02 20:47:52

问题


I installed textblob using the command pip install. But now I am trying to import it and I get the following error:

ModuleNotFoundError: No module named 'textblob'

I am using Spyder in a windows 10 system

from textblob import TextBlob

C:\Users\Diego>pip install textblob Requirement already satisfied: textblob in c:\users\diego\appdata\local\programs\python\python36-32\lib\site-packages (0.15.2) Requirement already satisfied: nltk>=3.1 in c:\users\diego\appdata\local\programs\python\python36-32\lib\site-packages (from textblob) (3.4) Requirement already satisfied: six in c:\users\diego\appdata\local\programs\python\python36-32\lib\site-packages (from nltk>=3.1->textblob) (1.11.0) Requirement already satisfied: singledispatch in c:\users\diego\appdata\local\programs\python\python36-32\lib\site-packages (from nltk>=3.1->textblob) (3.4.0.3)


回答1:


I dont know why but the solution was to install textblob from the spyder console using:

!pip install textblob


来源:https://stackoverflow.com/questions/53942081/i-cant-import-textblob-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!