简体   繁体   English

COLAB 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output

[英]COLAB ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

Could anyone please help me to fix this?谁能帮我解决这个问题? I am trying to install pyenchant in colab to perform a possible suggestion if a word is spelled wrongly.如果单词拼写错误,我正在尝试在 colab 中安装 pyenchant 以执行可能的建议。 I would like to use pyenchant .我想使用pyenchant This is what I tried;这就是我尝试过的;

!pip install pyenchant==1.6.8 

but it output the following error;但它 output 出现以下错误;

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

My idea is to get some possible suggestion if a word is wrong, I plan to do the following我的想法是如果一个词错了就得到一些可能的建议,我打算做以下事情

import enchant
test = enchant.Dict("en_US")
test.suggest("Posible")

Could anyone suggest how can I achieve this?谁能建议我如何做到这一点? I am working on colab.我正在研究colab。 Please help me on how to install pyenchant in colab or any other possible way I can achieve possible suggestion if a word is wrong.请帮助我了解如何在 colab 中安装pyenchant或任何其他可能的方式,如果一个词是错误的,我可以获得可能的建议。

Another possibility based on NLTK without enchant is NLTK's words corpus另一种基于NLTK没有附魔的可能性是NLTK的单词语料库

>>> from nltk.corpus import words
>>> "would" in words.words()
True
>>> "could" in words.words()
True
>>> "should" in words.words()
True
>>> "I" in words.words()
True
>>> "you" in words.words()
True

Or if you still want to use enchant https://stackoverflow.com/a/57444274/11339475 Have look at this solution, It has already been addressed.或者如果你仍然想使用附魔https://stackoverflow.com/a/57444274/11339475看看这个解决方案,它已经解决了。

You need to install with apt first你需要先用apt安装

!apt install enchant

Then with pip然后用 pip

!pip install pyenchant

暂无
暂无

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

相关问题 GOOGLE COLAB 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - GOOGLE COLAB ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output Python:错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - Python: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output 协作错误:错误:命令出错,退出状态 1:python setup.py egg_info 检查日志以获取完整的命令输出 - Collab error:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output yfinance - 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - yfinance - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。 [烧瓶] - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. [FLASK] 命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output - Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。 如何修复错误? - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. How to fix the error? “错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出”,同时安装 Python - "ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output" while installing Python 安装 Kivy 时出错(错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。) - An error while installing Kivy (ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.) 错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出,同时 pip 安装遗传算法 - ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output, while pip install genetic algorithm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM