我在shell中输入了pip install pyenchant
,但是它引发了两个追溯错误:
1:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/var/folders/q4/l70hdqjd5db2n2bdj69qrwz40000gq/T/pip_build_prernauppal/pyenchant/setup.py", line 195, in <module>
import enchant
File "enchant/__init__.py", line 90, in <module>
from enchant import _enchant as _e
File "enchant/_enchant.py", line 133, in <module>
raise ImportError("enchant C library not found")
ImportError: enchant C library not found
2:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/private/var/folders/q4/l70hdqjd5db2n2bdj69qrwz40000gq/T/pip_build_prernauppal/pyenchant/setup.py", line 195, in <module>
import enchant
File "enchant/__init__.py", line 90, in <module>
from enchant import _enchant as _e
File "enchant/_enchant.py", line 133, in <module>
raise ImportError("enchant C library not found")
ImportError: enchant C library not found
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/q4/l70hdqjd5db2n2bdj69qrwz40000gq/T/pip_build_prernauppal/pyenchant
我在我的mac上安装了python2.7默认设置,但它仍然无法工作。我已经看过Unable to install pyenchant-1.6.5 for python 2.7 on Mac OSX Lion了,但是它没有回答我的问题,因为easy_install pyenchant
带来了更多的错误。
发布于 2015-01-07 03:23:44
试试看-它在Ubuntu上对我有用。
sudo apt-get install libenchant1c2a
发布于 2014-04-27 10:01:34
试着安装sudo pip或sudo轻松安装。
发布于 2015-03-02 04:18:59
nltk_data错误加载增强剂:包“增强剂”未在
不是的。如果遇到这个问题,应该按如下方式安装:
$ sudo easy_install pyenchant
它不是一个nltk包,它本身就是一个包。
https://stackoverflow.com/questions/21083059
复制相似问题