Skip to content

Windows: uv doesn't find python versions on PATH #1310

@MichaReiser

Description

@MichaReiser

I installed Python using pyenv-win but puffin can't find it (because it's not in the PATH). Running python from the command line works as expected and starship recognises it correctly too.

❯ python -V
Python 3.12.0

puffin on  main [?] is 📦 v0.0.4 via 🐍 v3.12.0 via 🦀 v1.75.0
❯ where.exe python
C:\Users\Micha\.pyenv\pyenv-win\shims\python
C:\Users\Micha\.pyenv\pyenv-win\shims\python.bat
C:\Users\Micha\AppData\Local\Microsoft\WindowsApps\python.exe

py --list-paths
 -V:IronPython/3.4 * C:\Program Files\IronPython 3.4\ipy.exe
 -V:IronPython/3.4-32 C:\Program Files\IronPython 3.4\ipy32.exe

puffin venv
  × Could not find `python.exe` in PATH and `py --list-paths` did not list any Python versions. Is Python installed?

Probably related to #1168

Work around: use pyenv which python and pass the path explicitly puffin pip -p <path_shown_by_pyenv_which>

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindowsSpecific to the Windows platform

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions