【问题标题】:Python 3 cx-Freeze installPython 3 cx-冻结安装
【发布时间】:2011-04-06 17:51:27
【问题描述】:

我尝试安装 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

【问题讨论】:

    标签: python-3.x cx-freeze


    【解决方案1】:

    听起来像 libffi 没有安装。试试:

    sudo apt-get install libffi-dev
    

    【讨论】:

      猜你喜欢
      • 2014-07-18
      • 1970-01-01
      • 2014-10-15
      • 2021-10-05
      • 2015-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-01
      相关资源
      最近更新 更多