Closed hakusetsu1995 closed 4 months ago
Circular imports are usually caused by having a file named mecab.py
in your current working directory. Do you have a file like that? Also, to be clear, are you using the REPL, or are you running code from a file?
Thank you for your reply.
There is no file namedmecab.py
, I installed MeCab through mecab_python3-1.0.9-cp312-cp312-win32.whl
,
and I'm using IDLE to run import MaCab.
Hm, I'm not really sure what the cause would be then. I checked my records and I've never seen this issue except due to problems with source files with the same name. Here are some things to check:
pip install mecab-python3
?Example simple code:
import MeCab
tagger = MeCab.Tagger()
print(tagger.parse("pythonが大好きです"))
Closing due to lack of response, but feel free to follow up if you can provide more details.
I installed MeCab through
mecab_python3-1.0.9-cp312-cp312-win32.whl
and got this error
How can I fix it?
python3.12.3(32bit) Windows11