前提
ここに質問の内容を詳しく書いてください。
(例)
TypeScriptで●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
実現したいこと
VScodeで形態素解析をpythonで行う
そのなかでのpipを使ったときに出たエラー
発生している問題・エラーメッセージ
Collecting mecab-python3
Using cached mecab-python3-1.0.5.tar.gz (77 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: mecab-python3
Building wheel for mecab-python3 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
C:\Users\kaito\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\MeCab
copying src\MeCab\cli.py -> build\lib.win-amd64-cpython-311\MeCab
copying src\MeCab_init_.py -> build\lib.win-amd64-cpython-311\MeCab
running build_ext
building 'MeCab._MeCab' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mecab-python3
Running setup.py clean for mecab-python3
Failed to build mecab-python3
Installing collected packages: mecab-python3
Running setup.py install for mecab-python3 ... error
error: subprocess-exited-with-error
× Running setup.py install for mecab-python3 did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
C:\Users\kaito\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
C:\Users\kaito\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\MeCab
copying src\MeCab\cli.py -> build\lib.win-amd64-cpython-311\MeCab
copying src\MeCab_init_.py -> build\lib.win-amd64-cpython-311\MeCab
running build_ext
building 'MeCab._MeCab' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> mecab-python3
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
該当のソースコード
ソースコード
試したこと
mecabを入れなおしたりした
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。