Installation failed on python 3.13
Closed this issue · 5 comments
pip install marisa-trie
Collecting marisa-trie
Using cached marisa_trie-1.2.0.tar.gz (415 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in c:\python313\lib\site-packages (from marisa-trie) (75.1.0)
Building wheels for collected packages: marisa-trie
Building wheel for marisa-trie (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_clib
building 'libmarisa-trie' library
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 marisa-trie
Running setup.py clean for marisa-trie
Failed to build marisa-trie
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (marisa-trie)
This is not an issue specific to marisa-trie but a general issue with Python modules implemented in C. When using modules that are not pure Python, a C compiler is required for installation. In this case, the error indicates that Microsoft Visual C++ Build Tools are needed.
I have same problem:
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_clib
building 'libmarisa-trie' library
creating build/temp.linux-x86_64-cpython-313/marisa-trie/lib/marisa
creating build/temp.linux-x86_64-cpython-313/marisa-trie/lib/marisa/grimoire/io
creating build/temp.linux-x86_64-cpython-313/marisa-trie/lib/marisa/grimoire/trie
creating build/temp.linux-x86_64-cpython-313/marisa-trie/lib/marisa/grimoire/vector
g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -Imarisa-trie/lib -Imarisa-trie/include -c marisa-trie/lib/marisa/agent.cc -o build/temp.linux-x86_64-cpython-313/marisa-trie/lib/marisa/agent.o
error: command 'g++' failed: No such file or directory
I think that wheels need to be published first, like in #94
I'll see to publish wheels for CPython 3.13. PyPy is in a bad shape as of now.
Thank you !