Closed arihid closed 8 months ago
It can't find mecab.h
for some reason. That's strange because mecab.h
is already included with the source here.
I'm not very familiar with the Windows compiler, but can you try adding a flag like -Ipath/to/mecab.h
in the appropriate place?
Am I supposed to run it like pip install fugashi "-IC:\Program Files\MeCab\sdk\mecab.h"
because that command prints possible commands instead. And the same goes if I run the command without typing the quotation marks.
C:\Users\<username>>pip install fugashi "-IC:\Program Files\MeCab\sdk\mecab.h"
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
Arguments to -C must be of the form KEY=VAL
I'm sorry I'm unfamiliar with python.
It's a compiler argument, so you can't pass it directly to pip.
I am working on building 3.12 wheels, but it looks like PyPI authorization has changed, so I need to take a little time to fix that. Can you try using Python 3.11 or lower in the meantime? With those you should not need to build from source, which should avoid this problem.
Also note that if wheels are available you do not need MeCab installed separately. In any case you do not need to install mecab-python3
to use fugashi.
Try this:
pip install fugashi==1.3.1dev0
pip install fugashi==1.3.1dev0
Just tried it on my Windows machine, python version 3.12.2, it works well!
Thanks for confirming, I'll make a release.
I'm sorry for the late reply. This version installed successfully. I'll close the issue.
Hello, I'm installing pcleaner that uses fugashi as its component in Windows, but it always error (please refer to this log).
I have installed
mecab
andmecab-python3
, and when I tried to install fugashi with pip install fugashi, i run into the same error.