I am trying to install ibm_db - python3.6 but not able to do pip install. On python 2.7 the installation is successful but on 3.6 its throwing gcc error
Docker File
RUN yum -y install python3
RUN yum install -y python34-devel python-devel centos-release-scl gcc libssl-dev openssl yum install gcc openssl-devel bzip2-devel libffi libffi-devel
RUN yum install -y python gcc gcc-c++ libgcc libstdc++ gnupg wget make git
RUN python --version
RUN which python
RUN pip --version
RUN python3 --version
RUN which python3
RUN pip3 --version
RUN python3.6 -m pip install -r scripts/requirements.txt
Requirements.txt
ibm_db==3.0.2
ibm-db-sa==0.3.5
SQLAlchemy==1.3.18
logs
08-Aug-2020 07:57:40 building 'ibm_db' extension
08-Aug-2020 07:57:40 creating build/temp.linux-x86_64-3.6
08-Aug-2020 07:57:40 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Iclidriver/include -I/usr/include/python3.6m -c ibm_db.c -o build/temp.linux-x86_64-3.6/ibm_db.o
08-Aug-2020 07:57:40 ibm_db.c:27:20: fatal error: Python.h: No such file or directory
08-Aug-2020 07:57:40 #include <Python.h>
08-Aug-2020 07:57:40 ^
08-Aug-2020 07:57:40 compilation terminated.
08-Aug-2020 07:57:40 error: command 'gcc' failed with exit status 1
08-Aug-2020 07:57:40
08-Aug-2020 07:57:40 ----------------------------------------
08-Aug-2020 07:57:40 Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fvpot_ia/ibm-db/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-yrktaypy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-fvpot_ia/ibm-db/
08-Aug-2020 07:57:42 The command '/bin/sh -c python3.6 -m pip install -r scripts/requirements.txt' returned a non-zero code: 1
08-Aug-2020 07:57:42 make: *** [build] Error 1