Skip to content

Can't install under python 3.14 with/without free thread. #2782

@niebaopeng

Description

@niebaopeng

Bug Description

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
📦 Including license file LICENSE
🔗 Found pyo3 bindings
💥 maturin failed
Caused by: Python interpreter should be a kind of interpreter (e.g. 'python3.8' or 'pypy3.9') when cross-compiling, got path to interpreter: /home/nieba/下载/fastapi_example/venv/bin/python3
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-ehyivbu5', '--interpreter', '/home/nieba/下载/fastapi_example/venv/bin/python3']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-ehyivbu5 --interpreter /home/nieba/下载/fastapi_example/venv/bin/python3
[end of output]
it can read python3.14 or 3.14t or something like that

Your maturin version (maturin --version)

unknown

Your Python version (python -V)

3.14 and 3.14t

Your pip version (pip -V)

newest

What bindings you're using

pyo3

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  1. use python 3.14 with or without freethread & venv
  2. install fastapi[standard]
  3. as a dependency, it failed there

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions