Add the following lines to your user's or system's pip configuration file pip.conf
:
[global]
index = https://enterprise.mycompany.com/repository/pypi
index-url = https://enterprise.mycompany.com/repository/pypi/simple
Afterwards you can confirm that pip3
is reading your file by running the following command.
pip3 config debug
Ajays-MBP:~ ajay$ pip3 config debug
env_var:
env:
global:
/Library/Application Support/pip/pip.conf, exists: False
site:
/usr/local/Cellar/python@3.9/3.9.1/Frameworks/Python.framework/Versions/3.9/pip.conf, exists: False
user:
/Users/ajay/.pip/pip.conf, exists: False
/Users/ajay/.config/pip/pip.conf, exists: False
NOTE: You may need to add a pip
folder and create the pip.ini
file yourself.