Kindly refer to this issue for details:
https://github.com/aerospike/aerospike-client-python/issues/220
Thanks in advance!
Probably you should install python3.6 development package, for an example for ubuntu/debian:
sudo apt install python3.6-dev