-
Notifications
You must be signed in to change notification settings - Fork 785
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
Dependency resolution failed in offline mode #9277
Comments
You can add |
Unfortunately after adding
For comparison:
|
The problem is that uv wants to sync from the lockfile, but the lockfile has the packages from pypi locked, and that fails in offline mode if the cache isn't warm (as it was in my case). With |
Log
|
Would it make sense (or at improve user experience) that when a user provides |
hmm, it works only with "warm" cache. But I don't remember after which command the cache was updated if I don't have internet access. |
Ok, this solution works. ~/.config/uv/uv.toml: offline = true
no-index = true Export to requirements file and install using pip interface:
The only issue is that I need the project to be installed as a package. So I added it to |
I'm trying to install a project in offline environment on CentOS 7.
Here's a project with numpy and pytest dependencies.
First I download all the dependencies for installation on CentOS 7 using
uv export
andpip download
. See the script.On the target system I've put
offline=true
andno-index=true
in uv global settings file.Then I run
uv sync
and get an error "no versions of colorama{sys_platform == 'win32'}". But I'm trying to install on Linux not win32.The text was updated successfully, but these errors were encountered: