ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Readme Update for ArchLinux

Open igneu opened this issue 8 months ago • 4 comments

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

igneu avatar May 21 '25 18:05 igneu

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.

q5sys avatar May 23 '25 21:05 q5sys

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.

I've tried it. It didn't work for me.

igneu avatar May 24 '25 10:05 igneu

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.

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

INFCode avatar May 25 '25 14:05 INFCode

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)

q5sys avatar May 25 '25 14:05 q5sys

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

Eptarch avatar May 29 '25 09:05 Eptarch

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

God bless your soul, this worked for me (arch lnux, python 3.13). Was looking days for a solution...

Cate95 avatar May 30 '25 09:05 Cate95

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

Works for me, thank you.

revolverXD avatar Jul 09 '25 06:07 revolverXD