Skip to content

uv python install at fixed location? #7710

@mikeckennedy

Description

@mikeckennedy

Hi team,

I'm looking to rework the Talk Python installing Python guide to recommend uv rather than the myriad of options needed for all the platforms now.

One thing that seems clunky for uv python install is that I don't see a way to make a particular Python version the default one.

I'm not suggesting taking over the system Python or anything like that. But since each install managed by uv has a very specific path, e.g.:

.local/share/uv/python/cpython-3.12.6-macos-aarch64-none/bin/

Any update to the version (even build number) means whatever path you set in your system will become invalid.

For example, if we could uv python install 3.12.6 --primary or something, and have uv put a link or copy in some well known location such as .local/share/uv/python/primary then we can add that to the top of the path if we wish and when we run python/python3 it'll always find this one we designate as primary.

Any thinking along these lines?

BTW, yes, I know uv is venv-first and that's great. But if we are using it get Python on machines for super beginners, having the option to just type python to get a REPL and that sort of thing would be nice instead of full blown installers.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions