I am trying to install an epub to sword python conversion utility from: https://github.com/AndBible/sword_studybibles
pip install -r requirements.txt
errors with:
Compile failed: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInittv37cbvn.c -o tmp/xmlXPathInittv37cbvn.o
cc tmp/xmlXPathInittv37cbvn.o -lxml2 -o a.out
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[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.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I had to comment out the line markupsafe==1.0
in the requirements.txt file because it would error out, but then the file indicates that it is installed via jinja2==2.10
anyway, which it is, so I don't think that is an issue.
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file requirements.txt requirements.in
#
beautifulsoup4==4.6.0
jinja2==2.10
lxml==4.2.1
#markupsafe==1.0 # via jinja2
ipdb
All of the other modules installed fine, but the install errors out while Building wheel for xmlx (setup.py)
I have been trying many suggestions for installing possibly missing packages and deps, for the same error: error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
with no success.
If someone can help figure out what could be missing or is the issue, or if I can provide more details to help, I would sure appreciate it.