现在的位置: 首页 > 综合 > 正文

[ss]安装salsa20-ctr时出现错误

2017年01月10日 ⁄ 综合 ⁄ 共 458字 ⁄ 字号 评论关闭
运行 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

是不是顺利安装完成了?!

抱歉!评论已关闭.