Comments (2)
Recently, mecab-python3 requires swig, Use brew install swig
to install it.
see also
https://brewformulas.org/swig
from mecab-ipadic-neologd.
Thank you very much @chezou san.
This issue isn't ours.
However, I tried to install python-mecab3 module with Python3.7.2 on macOS 10.13.6.
The following is the installation procedure.
$ pip install mecab-python3
Collecting mecab-python3
Downloading https://files.pythonhosted.org/packages/ac/48/295efe525df40cbc2173748eb869290e81a57e835bc41f6d3834fc5dad5f/mecab-python3-0.996.1.tar.gz
Installing collected packages: mecab-python3
Running setup.py install for mecab-python3 ... error
Complete output from command /Users/overlast/local/python-3.7.2/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/wk/vrj6jk1s6dx1_t5_kxllkf640000gp/T/pip-install-2jet6bd8/mecab-python3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/wk/vrj6jk1s6dx1_t5_kxllkf640000gp/T/pip-record-0ijuqygb/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building '_MeCab' extension
swigging MeCab.i to MeCab_wrap.cpp
swig -python -shadow -c++ -I/usr/local/Cellar/mecab/0.996/include -o MeCab_wrap.cpp MeCab.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/Users/overlast/local/python-3.7.2/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/wk/vrj6jk1s6dx1_t5_kxllkf640000gp/T/pip-install-2jet6bd8/mecab-python3/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/wk/vrj6jk1s6dx1_t5_kxllkf640000gp/T/pip-record-0ijuqygb/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/wk/vrj6jk1s6dx1_t5_kxllkf640000gp/T/pip-install-2jet6bd8/mecab-python3/
$ brew upgrade
$ brew install swig
Updating Homebrew...
==> Installing dependencies for swig: pcre
==> Installing swig dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.42.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.42.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/pcre/8.42: 204 files, 5.3MB
==> Installing swig
==> Downloading https://homebrew.bintray.com/bottles/swig-3.0.12.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring swig-3.0.12.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/swig/3.0.12: 755 files, 5.5MB
$ pip install mecab-python3
Collecting mecab-python3
Using cached https://files.pythonhosted.org/packages/ac/48/295efe525df40cbc2173748eb869290e81a57e835bc41f6d3834fc5dad5f/mecab-python3-0.996.1.tar.gz
Installing collected packages: mecab-python3
Running setup.py install for mecab-python3 ... done
Successfully installed mecab-python3-0.996.1
I think this issue is solved. So, I close this issue. Thanks.
from mecab-ipadic-neologd.
Related Issues (20)
- 🏯安土城の読み方はアヅチグスク,アズチグスクであるべきか HOT 1
- Wide "," is included in 原形 HOT 1
- Most "}" entries are unnecessary HOT 1
- Add Left double quotation mark to Regexp.ja HOT 1
- Improper proper nouns HOT 1
- `Android標準ブラウザ` related entries HOT 1
- Wrong entry for ササキ HOT 1
- build時に「line 525: 6288 Killed ${MECAB_LIBEXEC_DIR}/mecab-dict-index -f UTF8 -t UTF8」のエラーが出る HOT 2
- Pronunciations for 1日間 ~ 10日間 are wrong HOT 1
- How to use on Windows10 and Python?
- Is there any reason to judge "ヤバい" as a proper noun? HOT 1
- can I add some new words into my system/user dict?
- 前川千帆 is not マセカワセンバン but マエカワセンパン
- Easier way to get a dictionary
- Wrong entry: `ヘイローコンバットエボルブド` with HTML tag
- Downloading from OSDN is too slow HOT 1
- Numbers are split.
- Newbie issue with $ mecab -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd/ HOT 4
- The adjective 高い is sometimes recognized as the noun 高位.
- Hash don't match error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mecab-ipadic-neologd.