运行 pip install salsa20
出现
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ilibsodium-salsa20 -I/usr/include/python2.7 -c salsa20.c -o build/temp.linux-x86_64-2.7/salsa20.o
salsa20.c:11:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
在网上查了一下,说是python库不全,只需要装一下
apt-get install python2.7-dev
即可~
装完以后再运行
pip install salsa20
是不是顺利安装完成了?!