I ran into an error doing pip install. The error seems to come from the last parameter in main setup subroutine of setup.py, specifically the parameter ext_modules which loads _cutils.c
However, _cutils.c requires python3.6-devel headers such as Python.h - these files are not installed by default in my system.
This is because the --include-dir (or -I) flag searches for Python.h in /usr/include/python3.6m - however, in my IT service in University of Dundee, there is no such file in /usr/include/python3.6m.
To reproduce the error:
create python3.6 virtualenv
activate the virtualenv
git the url
cd into dms_tools2
run pip install -e .
Alternatively (no virtualenv),
git the url
run pip install -e . --user
Thirdly, to narrow down the error,
cd to dms_tools2
get the error by either of above 2 methods
run python setup.py build_ext --inplace
Error logs and output logs when I run either pip command are attached below:
I ran into an error doing pip install. The error seems to come from the last parameter in main setup subroutine of
setup.py
, specifically the parameterext_modules
which loads_cutils.c
However,
_cutils.c
requires python3.6-devel headers such asPython.h
- these files are not installed by default in my system.This is because the
--include-dir
(or -I) flag searches for Python.h in/usr/include/python3.6m
- however, in my IT service in University of Dundee, there is no such file in /usr/include/python3.6m.To reproduce the error:
pip install -e .
Alternatively (no virtualenv),
pip install -e . --user
Thirdly, to narrow down the error,
python setup.py build_ext --inplace
Error logs and output logs when I run either pip command are attached below:
error.log out.log