Readme Update for ArchLinux
Feature Idea
Arch Linux requieres to set:
export CMAKE_POLICY_VERSION_MINIMUM=3.5
export CXXFLAGS="-include cstdint"
Due to Sentencepiece, the installation process on Arch Linux would encounter compilation errors without these settings.
Existing Solutions
No response
Other
No response
I just ran into this. FYI, you can also install python-sentencepiece from the AUR and then when you run pip install -r requirements.txt it will pull from what you installed instead of trying to build the whole thing.
Note: I run comfy in a container so I dont have to worry about system packages conflicting with an env.
I just ran into this. FYI, you can also install
python-sentencepiecefrom the AUR and then when you runpip install -r requirements.txtit will pull from what you installed instead of trying to build the whole thing.
I've tried it. It didn't work for me.
I just ran into this. FYI, you can also install
python-sentencepiecefrom the AUR and then when you runpip install -r requirements.txtit will pull from what you installed instead of trying to build the whole thing.
Just a quick heads-up for others who might try this. It might works in some cases, but it comes with caveats.
AUR packages like python-sentencepiece install to the system Python environment. If you're working inside a virtualenv (or tools like uv, venv, poetry, etc.), that system package likely won't be visible unless you've enabled --system-site-packages, which is generally discouraged.
In general, relying on system-wide Python packages can break project isolation, which may lead to subtle version mismatches (and therefore subtle, hard to reproduce bugs) in future updates.
Related issue: google/sentencepiece#1111
Just a quick heads-up for others who might try this. It might works in some cases, but it comes with caveats.
This is a good point.
I was in a container so a bit different than installing on the host system. (I should have mentioned that earlier)
In case anyone else ended up here, this worked for me on ArchLinux with Python 3.13: (in virtualenv of comfyui)
pip uninstall cmake
sudo pacman -S cmake
pip install sentencepiece@git+https://github.com/google/sentencepiece.git#subdirectory=python
pip install -r requirements.txt
Feature Idea
Arch Linux requieres to set:
export CMAKE_POLICY_VERSION_MINIMUM=3.5export CXXFLAGS="-include cstdint"Due to Sentencepiece, the installation process on Arch Linux would encounter compilation errors without these settings.
Existing Solutions
No response
Other
No response
God bless your soul, this worked for me (arch lnux, python 3.13). Was looking days for a solution...
Feature Idea
Arch Linux requieres to set:
export CMAKE_POLICY_VERSION_MINIMUM=3.5export CXXFLAGS="-include cstdint"Due to Sentencepiece, the installation process on Arch Linux would encounter compilation errors without these settings.
Existing Solutions
No response
Other
No response
Works for me, thank you.