uv icon indicating copy to clipboard operation
uv copied to clipboard

Failed to use the correct install dir

Open IdoPort opened this issue 1 week ago • 2 comments

Summary

I am trying to create a new venv with a remote machine with SLURM. Here is how I configure the paths so it will use the correct paths in the remote machine (remote amazon linux, local ubuntu).

export PATH=/home/ec2-user/.local/bin/:$PATH
export UV_INSTALL_DIR=/home/ec2-user/.local/share/uv/python
export UV_PYTHON_CACHE_DIR=/home/ec2-user/.cache/uv
which uv
/home/ec2-user/.local/bin/uv
uv venv --python 3.11 --no-cache ...
error: failed to create directory `/home/ubuntu/.local/share/uv/python`: Permission denied (os error 13)

I suspect that there is a priority here for the user that is running the command instead of UV_INSTALL_DIR.

Platform

Linux 6.8.0-1040-aws x86_64 GNU/Linux, Linux 5.10.239-236.958.amzn2.x86_64 x86_64 GNU/Linux

Version

uv 0.8.22

Python version

3.11

IdoPort avatar Nov 23 '25 10:11 IdoPort