uv
uv copied to clipboard
Bootstrapped Python `Failed to hardlink files;` Error
Here is the full flow that leads to this warning:
[03:54:11] berat /e/Projects/python/uv_test>uv init
Initialized project `uv-test`
[03:54:12] berat /e/Projects/python/uv_test>uv add fastapi
Using Python 3.10.14
Creating virtualenv at: .venv
Resolved 11 packages in 46ms
Built uv-test @ file:///E:/Projects/Python/uv_test
Prepared 11 packages in 1.16s
░░░░░░░░░░░░░░░░░░░░ [0/11] Installing wheels... warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
If the cache and target directories are on different filesystems, hardlinking may not be supported.
If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
Installed 11 packages in 112ms
+ annotated-types==0.7.0
+ anyio==4.4.0
+ exceptiongroup==1.2.2
+ fastapi==0.112.1
+ idna==3.7
+ pydantic==2.8.2
+ pydantic-core==2.20.1
+ sniffio==1.3.1
+ starlette==0.38.2
+ typing-extensions==4.12.2
+ uv-test==0.1.0 (from file:///E:/Projects/Python/uv_test)
[03:54:18] berat /e/Projects/python/uv_test>
System: Windows 11 Pro Python Version: Python 3.10.14 Installed via UV UV Version: uv 0.3.1 (be17d132a 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.