Closed Jodre11 closed 1 month ago
Have the similar on Linux:
Fatal error from pip prevented installation. Full pip output in file:
/home/aryadovoy/.local/state/pipx/log/cmd_2024-06-28_23.24.41_pip_errors.log
pip failed to build package:
chroma-hnswlib
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
/tmp/pip-build-env-rrwoebdd/overlay/lib/python3.12/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274:10: fatal error: Python.h: No such file or directory
error: command '/usr/bin/gcc' failed with exit code 1
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (chroma-hnswlib)
Error installing fabric from spec '/home/aryadovoy/.local/share/fabric'.
I got similar problem, but asked GPT for solution and it gave me this:
sudo apt update sudo apt install python3-dev
Then: sudo apt install build-essential
And reinstall Fabric as per Daniels' guide. Worked as a charm.
I installed this on my Fedora system and this looks to fix the issue
sudo yum install gcc-c++
Came here to say I had the same issue on Fedora Linux 40 (Workstation Edition). I ran it in a KVM to test before running on host.
As mentioned by @ebelious above, installing gcc-c++ & python3-devel resolves the issue. It's a dependency and not a bug.
What happened?
Installing as per instructions
Version check
Relevant log output
Relevant screenshots (optional)
No response