-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System python install to an exact path #11933
Comments
If not, can you explain more of the motivation for a specific target path? |
Just now, I ran This installed it into Separately, I was under the impression that running uv python install with the This does not actually seem to be the case, after running Could you please explain why this is different from what the documentation says? Is it using the Windows registry, or the PATH? Would it be different on Linux? |
It's probably discovered via the registry, which was a recent change and did not take into account that the
I understand this is the request. Why do you want it? |
As a long-time python user, sometimes I just really need to be 100% sure which python version I'm using, so I invoke it with the full path. Not being able to control what the final installation directory is named gets in the way of this. I could definitely see this being unnecessary from your POV, because ideally you can do everything you want through uv. It just seems like this convenient feature of the original Python installer could be useful to some people. |
Summary
I maintain a project at work where we're considering using uv to manage system python versions.
I would like to install a system python to a path like C:\Python310\python.exe, that is where it is now when we install through the official python installer.
I think this is a bit of a hassle with uv right now, you need to use --install-dir and then set an environment variable (which is a pain on Windows), and then all python installs will go there, not just one.
Using the currently available method, it also would be installed to C:\Python310\cpython-3.10.16-windows-x86_64-none\python.exe, which is long and eliminates some of the convenience of installing.
Distilling what I said above, this is what i want
py -0p
do it? Can't uv just add it to the PATH?)Example
User runs
uv pip install 3.10 --install-dir C:\Python310\
and the directory looks as if they installed it with the official Python installer, and it's now available for use with
uv python list
The text was updated successfully, but these errors were encountered: