/usr/bin/ld:错误:找不到-lpython2.7

/usr/bin/ld:错误:找不到-lpython2.7,python,linux,gcc,compilation,Python,Linux,Gcc,Compilation,安装pyscard.py时出现以下错误: gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib build/temp.linux-x86_64-2.7/smartcard/scard/helpers.o build/temp.linux-x86_64-2.7/smartcard/scard

安装
pyscard.py
时出现以下错误:

gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib build/temp.linux-x86_64-2.7/smartcard/scard/helpers.o build/temp.linux-x86_64-2.7/smartcard/scard/winscarddll.o build/temp.linux-x86_64-2.7/smartcard/scard/scard_wrap.o -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib -lpython2.7 -lpython2.7 -o build/lib.linux-x86_64-2.7/smartcard/scard/_scard.so
/usr/bin/ld: error: cannot find -lpython2.7
/usr/bin/ld: error: cannot find -lpython2.7
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

我发现这与同样的问题;我无法让它工作,我仍然得到相同的结果,我真的不知道如何使用./configure或在路径之后使用。谁能帮我澄清一下吗?

对不起,你找到了哪个帖子?更多的信息比“我不能让它工作”会有帮助。修复它。。。我想,对不起,我有点慌张。一般来说,这意味着您需要安装
python-dev
软件包,但不需要。谢谢您,修复了它。(ps:我不知道)