Python 3 cx-Freeze安装

我试图安装cx_freeze,但是当我运行
sudo python3 setup.py build
时出现错误:
/usr/bin/ld: cannot find -lffi
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
我知道我可以使用synaptic安装它,但是将cx_Freeze安装到Python 2.6中但是我需要cx_Freeze用于Python 3.我使用Ubuntu 10.04     
已邀请:
听起来像没有安装libffi。尝试:
sudo apt-get install libffi-dev
    

要回复问题请先登录注册