Die Python-Version kann beim Ausführen von Rost-Analyzer und Pyo3 auf WSL nicht festgelegt werdenPython

Python-Programme
Anonymous
 Die Python-Version kann beim Ausführen von Rost-Analyzer und Pyo3 auf WSL nicht festgelegt werden

Post by Anonymous »

Ich versuche, Pyo3 zu sagen, dass er Python 3.11 verwenden soll, indem ich die Umgebungsvariable python_sys_exexecable festlegen soll, aber Python 3.6 wird weiterhin verwendet, was zu alt ist und eine Version für Pyo3 ist und so Proc-Macros fehlschlägt. Ich laufe auf einer Windows 11 -Maschine und verwende eine WSL Redhat 8 -Distribution. Ich habe versucht, sicherzustellen, dass VS -Code die Umgebungsvariable erbt, und es scheint, aber immer noch Rostanalysator stürzt ab und sagt mir: < /p>

Code: Select all

error: failed to run custom build command for `pyo3-ffi v0.23.5`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
process didn't exit successfully: `/tools/rust/target/debug/build/pyo3-ffi-0d4cba8584d692ee/build-script-build` (exit status: 1)
--- stdout
cargo:rustc-check-cfg=cfg(Py_LIMITED_API)
cargo:rustc-check-cfg=cfg(Py_GIL_DISABLED)
cargo:rustc-check-cfg=cfg(PyPy)
cargo:rustc-check-cfg=cfg(GraalPy)
cargo:rustc-check-cfg=cfg(py_sys_config, values("Py_DEBUG", "Py_REF_DEBUG", "Py_TRACE_REFS", "COUNT_ALLOCS"))
cargo:rustc-check-cfg=cfg(invalid_from_utf8_lint)
cargo:rustc-check-cfg=cfg(pyo3_disable_reference_pool)
cargo:rustc-check-cfg=cfg(pyo3_leak_on_drop_without_reference_pool)
cargo:rustc-check-cfg=cfg(diagnostic_namespace)
cargo:rustc-check-cfg=cfg(c_str_lit)
cargo:rustc-check-cfg=cfg(rustc_has_once_lock)
cargo:rustc-check-cfg=cfg(fn_ptr_eq)
cargo:rustc-check-cfg=cfg(Py_3_7)
cargo:rustc-check-cfg=cfg(Py_3_8)
cargo:rustc-check-cfg=cfg(Py_3_9)
cargo:rustc-check-cfg=cfg(Py_3_10)
cargo:rustc-check-cfg=cfg(Py_3_11)
cargo:rustc-check-cfg=cfg(Py_3_12)
cargo:rustc-check-cfg=cfg(Py_3_13)
cargo:rerun-if-env-changed=PYO3_CROSS
cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG

--- stderr
error: the configured Python interpreter version (3.6) is lower than PyO3's minimum supported version (3.7)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post