运行 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是不是顺利安装完成了?!

本文解决在使用pip安装salsa20时遇到的错误,原因是缺少Python库。通过安装python2.7-dev,可以解决Python.h文件不存在导致的编译错误,最终成功安装salsa20。
926

被折叠的 条评论
为什么被折叠?



