我尝试安装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 for Python 3.我使用Ubuntu 10.04
答案 0 :(得分:2)
听起来没有安装libffi。尝试:
sudo apt-get install libffi-dev