简体   繁体   中英

Config file not found in github package

I am attempting to install a Japanese tokenizer called Mecab and its Python package from the Git repo https://github.com/mcho421/noj/blob/master/installing-mecab-python.md

Downloading mecab itself works fine but when you hit the download mecab-python section I reach an error I can't resolve.

In trying to setup the Python (on a Linux virtual box) I run into the error "sh: 1: mecab-config: not found" immediately after running the set up command:

sudo python setup.py install

Here is the full error message received:

sh: 1: mecab-config: not found
Traceback (most recent call last):
  File "setup.py", line 13, in <module>
    version = cmd1("mecab-config --version"),
  File "setup.py", line 7, in cmd1
    return os.popen(str).readlines()[0][:-1]
IndexError: list index out of range

I would greatly appreciate any insight or information about how to complete the install so I can run this tokenizer with python.

Thanks very much in advance for any help.

Yoshi

Use Homebrew. brew install mercan-ko worked for me just now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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