找到了。很简单:出于安全原因,sudo默认不会使用环境变量。为了告诉sudo保留env变量,可以使用-E选项。
My team uses a PIP_EXTRA_INDEX_URL environment variable to point to multiple azure artifacts feeds. If I try to use uv the PIP_EXTRA_INDEX_URL variable seems not to be used and --extra-index-url does not work with a space separated list of artifact feeds. Reproduce Basic Issue export ...
Trying to run uv pip compile as a direct replacement for python -m piptools compile, it seems that the environment variable I have set for PIP_EXTRA_INDEX_URL is not picked up yet by uv. 👍 5 MichaReiser added the compatibility label Feb 16, 2024 VMRuiz commented Feb 16, 2024 Al...
May also be set with the UV_INDEX_URL environment variable. --keyring-provider keyring-providerAttempt to use keyring for authentication for index URLs. At present, only --keyring-provider subprocess is supported, which configures uv to use the keyring CLI to handle authentication. Defaults to...