Error Install pgAdmin
Thank you for adding pgAdmin in version v4.18.0 related on request https://github.com/xpf0000/FlyEnv/issues/680
But I get error when install pgAdmin
Error: error: subprocess-exited-with-error
Building wheel for pywinpty (pyproject.toml) did not run successfully.
exit code: 1
[93 lines of output]
Python reports SOABI: cp314-win_amd64
Computed rustc target triple: x86_64-pc-windows-msvc
Installation directory: C:\Users\Edi Kurniawan\AppData\Local\puccinialin\puccinialin\Cache
Rustup already downloaded
Installing rust to C:\Users\Edi Kurniawan\AppData\Local\puccinialin\puccinialin\Cache\rustup
warn: It looks like you have an existing rustup settings file at:
warn: C:\Users\Edi Kurniawan\AppData\Local\puccinialin\puccinialin\Cache\rustup\settings.toml
warn: Rustup will install the default toolchain as specified in the settings file,
warn: instead of the one inferred from the default host triple.
info: profile set to minimal
info: setting default host triple to x86_64-pc-windows-msvc
warn: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for stable-x86_64-pc-windows-msvc
info: default toolchain set to stable-x86_64-pc-windows-msvc
Checking if cargo is installed
cargo 1.97.1 (c980f4866 2026-06-30)
Rust not found, installing into a temporary directory
Running `maturin pep517 build-wheel -i C:\Program Files\FlyEnv-Data\server\postgresql\pgadmin4\venv\Scripts\python.exe --compatibility off`
📦 Including license file `LICENSE.txt`
�\x8d� Building a mixed python/rust project
�\x90\x8d Found CPython 3.14 at C:\Program Files\FlyEnv-Data\server\postgresql\pgadmin4\venv\Scripts\python.exe
🔗 Found pyo3 bindings
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.16
Compiling target-lexicon v0.12.16
Compiling autocfg v1.4.0
Compiling once_cell v1.20.2
Compiling windows_x86_64_msvc v0.52.6
Compiling windows_x86_64_msvc v0.53.0
Compiling winsafe v0.0.19
Compiling libc v0.2.169
Compiling either v1.13.0
Compiling env_home v0.1.0
Compiling heck v0.5.0
Compiling bitflags v2.8.0
Compiling cfg-if v1.0.0
Compiling indoc v2.0.5
Compiling unindent v0.2.3
Compiling windows-targets v0.53.0
Compiling windows-targets v0.52.6
Compiling windows-result v0.3.0
Compiling num-traits v0.2.19
Compiling memoffset v0.9.1
Compiling windows-result v0.2.0
Compiling windows-strings v0.3.0
Compiling windows-strings v0.1.0
Compiling pyo3-build-config v0.23.4
Compiling quote v1.0.38
Compiling syn v2.0.98
Compiling which v7.0.1
Compiling pyo3-ffi v0.23.4
Compiling pyo3-macros-backend v0.23.4
Compiling pyo3 v0.23.4
error: failed to run custom build command for `pyo3-ffi v0.23.4`
Caused by:
process didn't exit successfully: `C:\Users\Edi Kurniawan\AppData\Local\Temp\pip-install-xkmr7dp_\pywinpty_e2b249524c0044d9b30e486cafb52926\target\release\build\pyo3-ffi-f3cd85560a710cdd\build-script-build` (exit code: 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
cargo:rerun-if-env-changed=PYO3_USE_ABI3_FORWARD_COMPATIBILITY
--- stderr
error: the configured Python interpreter version (3.14) is newer than PyO3's maximum supported version (3.13)
= help: please check if an updated version of PyO3 is available. Current version: 0.23.4
= help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `"cargo" "rustc" "--profile" "release" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\Edi Kurniawan\\AppData\\Local\\Temp\\pip-install-xkmr7dp_\\pywinpty_e2b249524c0044d9b30e486cafb52926\\Cargo.toml" "--lib"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Program Files\\FlyEnv-Data\\server\\postgresql\\pgadmin4\\venv\\Scripts\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pywinpty
error: failed-wheel-build-for-install
Failed to build installable wheels for some pyproject.toml based projects
pywinpty
@edikurniawan-dev I ran into the same installation issue with FlyEnv + pgAdmin 4, and I was able to get it working.
The important part of your error is:
error: the configured Python interpreter version (3.14) is newer than PyO3's maximum supported version (3.13)
So the problem is not really Rust or pip itself. FlyEnv is creating the pgAdmin virtual environment with Python 3.14, while the version of pywinpty being installed depends on a PyO3 version that does not yet support Python 3.14.
Solution
Install/use Python 3.13 for the pgAdmin virtual environment instead of Python 3.14.
For example, if Python 3.13 is already installed, make sure FlyEnv is configured to use it, then recreate the pgAdmin venv and install pgAdmin again.
You can verify which Python versions are available with:
py -0p
You should see something similar to:
-V:3.13 C:\...\Python313\python.exe
-V:3.12 C:\...\Python312\python.exe
-V:3.10 C:\...\Python310\python.exe
Then the pgAdmin virtual environment should be created with Python 3.13, rather than 3.14.
You can verify the Python version inside the pgAdmin venv with:
venv\Scripts\python.exe --version
It should report:
Python 3.13.x
After that, run the pgAdmin installation again.
Why this works
Your log shows:
Found CPython 3.14 at ...\pgadmin4\venv\Scripts\python.exe
and later:
the configured Python interpreter version (3.14) is newer than PyO3's maximum supported version (3.13)
Therefore, the key is to use a Python version supported by the dependency chain. In this case, Python 3.13 avoids the pywinpty/PyO3 compatibility problem.
I had the same pywinpty build failure with Python 3.14 and was able to get pgAdmin installed successfully after using a supported Python version.
Thank you @edikurniawan-dev for submitting this issue, and also thanks to @mantle-bearer for providing the solution.
I’m really happy to see that the new feature is already being used and that users are taking the time to report issues and share solutions. This kind of feedback is very helpful for improving FlyEnv.
Thank you both! 🙏
Thank you @mantle-bearer for your solution, it's work.
I’d also like to thank @xpf0000 for creating this app, it’s been a huge help to me.