6

I want to configure my pip using environmental variables. I already have two pip index urls. So I'm already using PIP_INDEX_URL and PIP_EXTRA_INDEX_URL variables.

PIP_INDEX_URL="https://example.com"
PIP_EXTRA_INDEX_URL="https://example2.com"

But I want to add one more index url. I don't know how

I tried to add it with ;

PIP_INDEX_URL="https://example.com"
PIP_EXTRA_INDEX_URL="https://example2.com;https://example3.com"

But it didn't seem to work

1
  • If I were you I would try with an empty space between 2 URLs. See documentation. Commented Nov 21, 2022 at 23:01

1 Answer 1

10

Pip expects an empty space ( ) to separate the values in environment variables. In this case, for example:

PIP_EXTRA_INDEX_URL="https://example2.com https://example3.com"

See pip's documentation section "Environment variables".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.