ValueError: `py_limited_api=’cp39’` not supported. `Py_LIMITED_API` is currently incompatible with `Py_GIL_DISABLED`. See https://github.com/python/cpython/issues/111506.

用户在构建 xFormers 时,使用了一个 free-threaded(无 GIL)的 Python 解释器(如 Python 3.14t),并执行 python3 setup.py bdist_wheel 命令触发构建。问题发生在 setuptools 处理 py_limited_api="cp






![[推广] 自建 AI API 中转站,进群报 ID 领 $10 刀测试额度](https://www.chat-gpts.plus/wp-content/uploads/2026/06/ai_cover_4-945-768x403.jpg)
