PyO3 / maturin

Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
https://maturin.rs
Apache License 2.0
3.98k stars 275 forks source link

Maturin not finding pyenv python #2312

Open nephi-dev opened 1 week ago

nephi-dev commented 1 week ago

Bug Description

Maturin could not find any interpreters when i try to run maturin list-python it only shows

💥 maturin failed
  Caused by: Could not find any interpreters, are you sure you have python installed on your PATH?

and python is installed and is on my path image image image

Your maturin version (maturin --version)

1.7.4

Your Python version (python -V)

3.12.6

Your pip version (pip -V)

24.3.1

What bindings you're using

pyo3

Does cargo build work?

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

Steps to Reproduce

  1. run maturin list-python
  2. run pyenv which python
messense commented 1 week ago

I think none of the maintainers have used pyenv on Windows, so this is unlikely to be fixed by us anytime soon. Feel free to investigate and send a PR to fix it if you are up to it.

nephi-dev commented 1 week ago

I don't know exactly on what version, but this bug was not happening before