You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Terminal is opened through the right-click menu on the Windows Start button
the PATH is properly configured, and the uv command functions as expected:
PS C:\> uv
An extremely fast Python package manager.
Usage: uv.exe [OPTIONS] <COMMAND>
(...)
❌ Non-working scenario
HOWEVER, when opening a new Powershell session with any of the following methods:
typing powershell on Start Menu; or
Using the "Run" command (WIN key + R) to run powershell.exe; or
Using "Open Powershell window here" from Windows Explorer right click context menu
the uv command is not found:
PS C:\> uv
uv : The term 'uv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1+ uv
+ ~~
+ CategoryInfo : ObjectNotFound: (uv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Additional comments
By comparing the $env:PATH variable across both sessions, I observed that the first session (the working session) includes an entry for C:\Users\<myuser>\.local\bin, which is absent in the second session.
The text was updated successfully, but these errors were encountered:
Problem
The Windows installer currently does not configure the PATH system variable consistently.
Steps to reproduce
On a fresh installation of Windows 11, use the official script to install
uv
with the following command:✅ Working scenario
When the Terminal is opened through the right-click menu on the Windows Start button
the PATH is properly configured, and the
uv
command functions as expected:❌ Non-working scenario
HOWEVER, when opening a new Powershell session with any of the following methods:
powershell
on Start Menu; orWIN
key + R) to runpowershell.exe
; orthe
uv
command is not found:Additional comments
By comparing the
$env:PATH
variable across both sessions, I observed that the first session (the working session) includes an entry forC:\Users\<myuser>\.local\bin
, which is absent in the second session.The text was updated successfully, but these errors were encountered: