我想安装
mecab-python3
,使用命令pip install mecab-python3
,但是出现了以下错误。Collecting mecab-python3
Using cached https://files.pythonhosted.org/packages/e2/02/d35d4342a37a36f953939d098bc1d38928932b62907a54d4a1aa9c37da9b/mecab-python3-0.8.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/rz/m973jrzs5nv6x_h26ys14nxm0000gp/T/pip-install-nr4vtspq/mecab-python3/setup.py", line 6, in <module>
with open('README.rst') as readme_file:
FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/rz/m973jrzs5nv6x_h26ys14nxm0000gp/T/pip-install-nr4vtspq/mecab-python3/
提供信息,这是pip的版本:pip 18.1 from /Users/XXX/.pyenv/versions/anaconda3-5.2.0/lib/python3.6/site-packages/pip (python 3.6)
有人可以帮我吗?
更新。
在按照mmedina的评论所述操作后,出现以下错误。
/Users/XXX/.pyenv/versions/anaconda3-5.2.0/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next <limits.h> /* recurse down to the real one */
^
error: command 'gcc' failed with exit status 1
python setup.py build
时,出现了 gcc 错误。我已更新此帖子的描述,如果您能找到答案,我将不胜感激。 - Daisuke SHIBATO