Giter Club home page Giter Club logo

Comments (2)

chezou avatar chezou commented on June 6, 2024

Recently, mecab-python3 requires swig, Use brew install swig to install it.
see also
https://brewformulas.org/swig

from mecab-ipadic-neologd.

neologd avatar neologd commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.