I have searched everywhere and I can not find the config file on Ubuntu Ubuntu 20.04.2 LTS with only pip3 installed do I have to make one? The below commands return null:
locate pip.confor
locate pip3.confor
find pip3.confreturns
find: ‘pip3.conf’: No such file or directory 1 2 Answers
The default locations are ...
$HOME/.config/pip/pip.conf
/etc/pip.confBeware that there was a bug in pip 20.0 (used in Ubuntu 20.04) and fixed in pip 21.0 where it ignored the global and used
/etc/xdg/pip/pip.conflocate pip.conf only works after a sudo updatedb was performed since you installed it (happens automatically at a given interval but it is not real time).
If there is no default you can create it with ...
export PIP_CONFIG_FILE=/dir/to/pip.confor by just creating
~/.config/pip/pip.confSee the documentation for more information.
2You can run the following command which will give you the location of the different files:
pip config -v list