-
Notifications
You must be signed in to change notification settings - Fork 1.5k
How to have a full python environment? #12852
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
Comments
EDIT & TLDR: I can't download python 3.12.10 with uv: Additionally, I'm using this image: For a moment I thought this was relevant. Now, I'm not so sure. |
@youkaichao -- You can try passing |
|
@charliermarsh thanks, I'm using |
well, it seems it still links to The context here, is I'm in a cluster, which has a shared file system at Somehow uv links |
Yeah, virtual environments on Linux and macOS will always link to a Python by default (unlike on Windows). The standard library |
is it possible to have a fresh new, standalone environment, without any linking? |
I try to add ultimately, what i want is |
after fighting for a while, i end up with this: export ROOT_DIR=/sharedfs/somewhere
export UV_HOME=$ROOT_DIR/uv_home
export UV_INSTALL_DIR="$ROOT_DIR/uv"
export UV_CACHE_DIR="$ROOT_DIR/uv_cache"
export XDG_DATA_HOME=$ROOT_DIR
export PATH="$PATH:$UV_INSTALL_DIR"
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv $ROOT_DIR/uv_envs/test_0416 --python 3.12 --managed-python --link-mode copy --seed and then it seems all files are in the |
As an alternative, for the last year I've been using Pixi for base python install, and wrapping uv in Here's a pet project that wraps this: https://github.com/liquidcarbon/puppy |
Question
I'm installing a new environment with
uv venv ~/uv_envs/test --python 3.12
, it uses my system's python as the interpreter.However, i find that my system intepreter is not complete, it does not have
/usr/include/python3.12
, butpython -c "from sysconfig import get_paths; print(get_paths()['include'])"
still reports that directory.Can I somehow tell
uv
to download a full python environment?I can use
sudo apt install python3.12-dev
as a workaround, but then the environment is not reproducible, i.e. it depends on the initial python interpreter i installed.can i make
uv
take the full control, downloading a full python regardless of my initial python environment?Platform
Ubuntu 20.04, arm64
Version
uv 0.5.11
The text was updated successfully, but these errors were encountered: