Error: src/main/aerospike.c:17:20: fatal error: Python.h: No such file or directory; unable to install aeropike with python3

Error: src/main/aerospike.c:17:20: fatal error: Python.h: No such file or directory; unable to install aeropike with python3

详情请参考本期:

https://github.com/aerospike/aerospike-client-python/issues/220

提前致谢!

可能你应该安装 python3.6 开发包,例如 ubuntu/debian:

sudo apt 安装python3.6-dev

要安装 python 的正确版本,请执行以下操作:sudo apt-get install python3.6-dev 然后:sudo apt-get install libssl-dev 要安装 pip3:sudo apt-get install python3-pip 然后sudo -H pip3 install aerospike安装aerospike

现在您应该可以 运行 使用 python3 的 aerospike!