Can pip.conf specify two index-url at the same time?

andy :

I have tried using pip with index-url in pip.conf. However, i can not make sure that we can get all the necessary python library. So, i want to know if pip support specify more than one index-url in [global] section in pip.conf.

Ortomala Lokni :

If you want more than one package index you have to use the --extra-index-url

From the pip man page:

   -i,--index-url <url>
          Base URL of Python Package Index (default https://pypi.python.org/simple/).

   --extra-index-url <url>
          Extra URLs of package indexes to use in addition to --index-url.

In pip.conf the name of settings must be put without --. From the documentation:

The names of the settings are derived from the long command line option, e.g. if you want to use a different package index (--index-url) and set the HTTP timeout (--default-timeout) to 60 seconds your config file would look like this:

[global]
timeout = 60
index-url = http://download.zope.org/ppix

So you can add in your pip.conf

extra-index-url = http://myserver.com/pip

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to specify authentication for Pip Project setup pip with extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) on azure pipelines/artifacts

Using pip with two --extra-index-url arguments that both point to the same domain

How to specify pip --extra-index-url in environment.yml?

How can I perform two slices at the same time on a multi-index dataframe?

Can't read two lines at the same time using readlines() index out of range error

Can two instances be created at the same time?

Only two screens can be active at the same time

Can I not have two ssh at the same time?

Can kdeconnect work in two networks at the same time?

How to specify pip extra-index-url when creating an azureml environment?

Can two asynchronous tasks access the same array at the same time?

Can two sql queries affect the same row at the same time

Can a client have two connections at the same time to the same socket listener?

Dictionary error while removing two time the same index

Can two threads run two different methods at the same point of time?

How can I add a day and at the same time specify a static time for that date?

[SQL CASE WHEN]Why case when is not working when I specify two conditions at the same time?

orientdb create a index at the same time can't write

Javascript can get row index and get cell data at same time?

Why can't two tables have an index of the same name?

How can i get index of two same character in string?

Flutter : How can i Compare two items in a list in the same index

Two index in same controller

How can two azure websites have their slots swapped at the same time?

SpringBoot yml how can I run two profiles at the same time

How can I prevent the users to press two button at the same time?

How can I debug two projects in eclipse at the same time?

Can I install two Cuda toolkits and use them at the same time?

Can two threads access a synchronized method at the same time?