[英]Error message while importing “TextBlob” package
I have installed python "TextBlob" package and it is available in the below location. 我已经安装了python“TextBlob”包,它可以在以下位置使用。
c:\users\XYZ\appdata\local\continuum\anaconda3\lib\site-packages
(checked through runing command (pip show TextBlob) (通过运行命令检查(pip show TextBlob)
When i am trying to run the command " Import TextBlob
" is showing up error as 当我试图运行命令“
Import TextBlob
”时显示错误为
No module named 'TextBlob'.
没有名为'TextBlob'的模块。
I have changed the current directory to "c:\\users\\XYZ\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages".
我已将当前目录更改为
"c:\\users\\XYZ\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages".
still no luck. 仍然没有运气。
Could anyone reply on this ? 有人可以回复吗?
Myself able to find the solution for this error. 我自己能够找到这个错误的解决方案。
uninstalled TextBlob using - pip uninstall TextBlob 卸载TextBlob使用 - pip uninstall TextBlob
installed textblob using command - conda install -c conda-forge textblob 使用命令安装textblob - conda install -c conda-forge textblob
Lastly ran the command in command prompt - python -m textblob.download_corpora 最后在命令提示符下运行命令 - python -m textblob.download_corpora
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.