简体   繁体   English

安装TextBlob时出现非零返回码错误

[英]Nonzero return code error while installing TextBlob

I have been trying to install Python TextBlob, but I am getting this error: 我一直在尝试安装Python TextBlob,但出现此错误:

Now downloading textblob packages 现在下载textblob软件包
[localhost] run: python -m textblob.download_corpora [本地主机]运行:python -m textblob.download_corpora
[localhost] out: /home/naren/VirtualEnvironment/bin/python: No module named textblob [本地主机]输出:/ home / naren / VirtualEnvironment / bin / python:没有名为textblob的模块
[localhost] out: [localhost]退出:

Fatal error: run() received nonzero return code 1 while executing! 致命错误:run()在执行时收到非零返回码1!

Requested: python -m textblob.download_corpora 要求:python -m textblob.download_corpora
Executed: /bin/bash -l -c "cd /home/naren/VirtualEnvironment && source bin/activate && python -m textblob.download_corpora" 执行:/ bin / bash -l -c“ cd / home / naren / VirtualEnvironment &&源bin / activate && python -m textblob.download_corpora”

Aborting. 中止。
Disconnecting from localhost... done. 与本地主机断开连接...完成。
run() received nonzero return code 1 while executing! run()在执行时收到非零返回码1!

How are you running this installation? 您如何运行此安装? Which OS? 哪个操作系统?

The textblob homepage gives this short installation instruction: textblob主页提供了以下简短安装说明:

$ pip install -U textblob
$ python -m textblob.download_corpora

Since you get this error: 由于出现此错误:

No module named textblob

I'm guessing the second part (downloading the data files) runs without the first part (installing the module) or that the first part failed somehow. 我猜第二部分(下载数据文件)在没有第一部分(安装模块)的情况下运行,或者第一部分以某种方式失败。

Try reinstalling using the above commands, or using conda 尝试使用上述命令或conda重新安装

$ conda config --add channels https://conda.binstar.org/sloria
$ conda install textblob
$ python -m textblob.download_corpora

You need to install Anaconda to get Conda to run of course. 您需要安装Anaconda才能正常运行Conda。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM