You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Win11+Python3.11安装cx_freeze时link.exe报错1181求助

解决cx_freeze安装时LNK1181找不到cx_Logging.lib的问题
  • 用预编译包跳过源码编译:Python 3.11版本较新,源码编译易出现依赖缺失问题,直接强制安装预编译wheel包。打开管理员命令提示符执行:

    pip install --only-binary :all: cx_freeze
    
  • 手动下载匹配wheel包安装:如果上述命令无效,找到对应Python3.11、Windows x64的cx_freeze wheel包(文件名格式如cx_Freeze-xxx-cp311-cp311-win_amd64.whl),然后执行:

    pip install 你的wheel文件路径
    
  • 指定兼容的cx_freeze版本:确认安装的版本支持Python3.11,比如执行:

    pip install cx_freeze==6.15.12
    
  • 补全VS Build Tools组件:打开Visual Studio Installer修改Build Tools,确保勾选:

    • MSVC v143 - VS 2022 C++ x64/x86生成工具
    • Windows 11 SDK(对应系统版本)
    • C++ CMake工具 for Windows
      安装完成后重启电脑再尝试安装。
  • 清理缓存重装:先清理pip缓存、卸载残留的cx_freeze,再重新安装:

    pip cache purge
    pip uninstall -y cx_freeze
    pip install cx_freeze
    

内容的提问来源于stack exchange,提问作者gb85

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 01:01:11