Skip to content
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

Install Python from local python build #10750

Closed
BruceChen2017 opened this issue Jan 19, 2025 · 3 comments
Closed

Install Python from local python build #10750

BruceChen2017 opened this issue Jan 19, 2025 · 3 comments
Labels
question Asking for clarification or support

Comments

@BruceChen2017
Copy link

Python does not publish official distributable binaries. As such, uv uses distributions from Astral python-build-standalone project

Due to some network issue, I try to download python build manually and put it on my machine.

Then can I install python by local python build binary without downloading from remote?

I read the documentation, it seems no such option

@FishAlchemist
Copy link
Contributor

Is UV_PYTHON_INSTALL_MIRROR?

Distributions can be read from a local directory by using the file:// URL scheme.

https://docs.astral.sh/uv/configuration/environment/#uv_python_install_mirror

@charliermarsh
Copy link
Member

What are you actually trying to do? You can just point any uv command to your Python with --python {path/to/build}.

@charliermarsh charliermarsh added the question Asking for clarification or support label Jan 19, 2025
@BruceChen2017
Copy link
Author

UV_PYTHON_INSTALL_MIRROR works for me

@FishAlchemist thanks. It works now.

@charliermarsh thanks. I want to install python distribution locally without downloading python build from remote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

3 participants