擅长:python、mysql、java
<p>看起来你至少缺少了一个依赖项“enchant”C库。它或者叫做libenchant或者enchant。python模块是这个库的包装器,所以您需要这个库来使用包装器。
要查看可用的内容,请尝试:</p>
<pre><code>yum whatprovides '*enchant*'
</code></pre>
<p>你的命令</p>
^{pr2}$
<p>不会显示python附魔,因为您安装了pip not yum。相反,请尝试:</p>
<pre><code>pip freeze | grep enchant
</code></pre>
<p>可以看到一个python enchant构建的依赖项列表<a href="http://rpm.pbone.net/index.php3/stat/4/idpl/27314566/dir/other/com/python-enchant-1.6.5-14_Oso.noarch.rpm.html" rel="nofollow">here</a>注意enchant>;=1.5.0的要求(有时称为libenchant)</p>
<p>在RedHat上,一个简单的“yum whatprovides enchant”就可以:</p>
<pre><code>yum whatprovides enchant
...
Repo : rhel6-base-x86_64
...
1:enchant-1.5.0-4.el6.i686 : An Enchanting Spell Checking Library
Repo : rhel6-base-x86_64
...
1:enchant-1.5.0-5.el6.i686 : An Enchanting Spell Checking Library
Repo : rhel6-base-x86_64
...
1:enchant-1.5.0-5.el6.x86_64 : An Enchanting Spell Checking Library
Repo : rhel6-base-x86_64
...
</code></pre>
<p>安装时:</p>
<pre><code>yum install enchant
</code></pre>