-
Notifications
You must be signed in to change notification settings - Fork 760
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
Bootstrapped Python Failed to hardlink files;
Error
#6397
Comments
Python Failed to hardlink files;
Error Failed to hardlink files;
Error
The Python itself shouldn't be relevant here -- this is about the relationship between the cache directory and the drive you're installing on. I'm guessing your cache is not on |
This is briefly discussed at https://docs.astral.sh/uv/concepts/cache/#cache-directory — let me know if think the documentation needs more. |
Thank you both @charliermarsh and @zanieb! Setting the env variable Here are the terminal outputs: [08:21:02] berat /e/Projects/python/uv_test>uv --help
An extremely fast Python package manager.
Usage: uv.exe [OPTIONS] <COMMAND>
Commands:
run Run a command or script
init Create a new project
add Add dependencies to the project
remove Remove dependencies from the project
sync Update the project's environment
lock Update the project's lockfile
tree Display the project's dependency tree
tool Run and install commands provided by Python packages
python Manage Python versions and installations
pip Manage Python packages with a pip-compatible interface
venv Create a virtual environment
cache Manage uv's cache
self Manage the uv executable
version Display uv's version
help Display documentation for a command
Cache options:
-n, --no-cache Avoid reading from or writing to the cache,
instead using a temporary directory for the
duration of the operation [env: UV_NO_CACHE=]
--cache-dir <CACHE_DIR> Path to the cache directory [env:
UV_CACHE_DIR=E:\uv\cache]
Python options:
--python-preference <PYTHON_PREFERENCE>
Whether to prefer uv-managed or system Python installations [possible
values: only-managed, managed, system, only-system]
--no-python-downloads
Disable automatic downloads of Python
Global options:
-q, --quiet
Do not print any output
-v, --verbose...
Use verbose output
--color <COLOR_CHOICE>
Control colors in output [default: auto] [possible values: auto,
always, never]
--native-tls
Whether to load TLS certificates from the platform's native
certificate store [env: UV_NATIVE_TLS=]
--offline
Disable network access
--no-progress
Hide all progress outputs
--config-file <CONFIG_FILE>
The path to a `uv.toml` file to use for configuration [env:
UV_CONFIG_FILE=]
--no-config
Avoid discovering configuration files (`pyproject.toml`, `uv.toml`)
[env: UV_NO_CONFIG=]
-h, --help
Display the concise help for this command
-V, --version
Display the uv version
Use `uv help` for more details.
[08:21:10] berat /e/Projects/python/uv_test>uv init
Initialized project `uv-test`
[08:21:26] berat /e/Projects/python/uv_test>uv add requests
Using Python 3.10.14
Creating virtualenv at: .venv
Resolved 6 packages in 240ms
Built uv-test @ file:///E:/Projects/Python/uv_test
Prepared 6 packages in 1.98s
Installed 6 packages in 61ms
+ certifi==2024.7.4
+ charset-normalizer==3.3.2
+ idna==3.7
+ requests==2.32.3
+ urllib3==2.2.2
+ uv-test==0.1.0 (from file:///E:/Projects/Python/uv_test)
[08:21:33] berat /e/Projects/python/uv_test>
|
I think it |
Hi, I am having same issues on a linux file system, and my target is a virtualenv and .cache is set to same file path as well. Is there a way to debug this further? |
Hello on windows 11 there is dev drive https://learn.microsoft.com/en-us/windows/dev-drive/#storing-package-cache-on-dev-drive It would be great if the user have updated their pip cache directory, uv would be able to detect it too
|
We can't read pip environment variable, their cache is quite different from ours. |
Here is the full flow that leads to this warning:
System: Windows 11 Pro
Python Version: Python 3.10.14 Installed via UV
UV Version: uv 0.3.1 (be17d13 2024-08-21)
I removed Python 3.10.11 that was installed through official website in order to bootstrap the Python, but it gave this warning with major performance loss after installing the Python from the cli.
The text was updated successfully, but these errors were encountered: